bugfix to hierarchy check

This commit is contained in:
Erik 2021-05-10 22:21:25 +03:00
parent a1433dc0b8
commit 329811a661
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -229,7 +229,7 @@ class Infraction {
if (!target) return this._succeed();
const executorHighest = executor.roles.highest; //this.executor.roles.highest;
const targetHighest = target.roles.highest; //this.member.roles.highest;
if(executorHighest.comparePositionTo(targetHighest) > 0) {
if (executorHighest.comparePositionTo(targetHighest) < 0) {
return this._fail('INFRACTION_PROTECTIONERROR');
}
}