v2.4.0: necromancer skeletons are now aggroed if they are

This commit is contained in:
Evan Debenham
2024-04-16 12:16:37 -04:00
parent 25ef7a59ef
commit d9d04c30e5

View File

@@ -80,7 +80,17 @@ public class Necromancer extends Mob {
}
return super.act();
}
@Override
public void aggro(Char ch) {
super.aggro(ch);
if (mySkeleton != null && mySkeleton.isAlive()
&& Dungeon.level.mobs.contains(mySkeleton)
&& mySkeleton.alignment == alignment){
mySkeleton.aggro(ch);
}
}
@Override
public int drRoll() {
return super.drRoll() + Char.combatRoll(0, 5);