v2.4.2: dieing necromancers now only kill minions aligned to them
This commit is contained in:
+1
-1
@@ -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);
|
mySkeleton.die(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -75,7 +75,7 @@ public class SpectralNecromancer extends Necromancer {
|
|||||||
public void die(Object cause) {
|
public void die(Object cause) {
|
||||||
for (int ID : wraithIDs){
|
for (int ID : wraithIDs){
|
||||||
Actor a = Actor.findById(ID);
|
Actor a = Actor.findById(ID);
|
||||||
if (a instanceof Wraith){
|
if (a instanceof Wraith && ((Wraith) a).alignment == alignment){
|
||||||
((Wraith) a).die(null);
|
((Wraith) a).die(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user