isPlayerguard refactored to derive from agenttype.

This commit is contained in:
2023-08-31 08:13:37 -04:00
parent c8ed04aaaf
commit 1ac76cfcd8
4 changed files with 23 additions and 24 deletions
+1 -8
View File
@@ -30,18 +30,11 @@ public enum NPCManager {
if (mob.runeSet == 0)
return;
//Apply all rune effects.
if (NPCManager._runeSetMap.get(mob.runeSet).contains(252623)) {
mob.isPlayerGuard = true;
}
// Only captains have contracts
if (mob.contract != null || mob.isPlayerGuard)
if (mob.contract != null || mob.isPlayerGuard())
applyEffectsForRune(mob, 252621);
// Apply effects from RuneSet
if (mob.runeSet != 0)