v2.4.2: dieing necromancers now only kill minions aligned to them

This commit is contained in:
Evan Debenham
2024-06-02 15:29:26 -04:00
parent 0cd5e7975d
commit 20ebed411b
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ public class Necromancer extends Mob {
}
}
if (mySkeleton != null && mySkeleton.isAlive()){
if (mySkeleton != null && mySkeleton.isAlive() && mySkeleton.alignment == alignment){
mySkeleton.die(null);
}

View File

@@ -75,7 +75,7 @@ public class SpectralNecromancer extends Necromancer {
public void die(Object cause) {
for (int ID : wraithIDs){
Actor a = Actor.findById(ID);
if (a instanceof Wraith){
if (a instanceof Wraith && ((Wraith) a).alignment == alignment){
((Wraith) a).die(null);
}
}