v2.4.2: dieing necromancers now only kill minions aligned to them
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user