From 2893e673759531236762df66335574752371dd88 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 17 Aug 2015 19:32:12 -0400 Subject: [PATCH] v0.3.1: made the dwarf king's skeletons more responsive to who is attacking their master --- .../shatteredpixeldungeon/actors/mobs/King.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java index 709abf746..e7afcf85b 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java @@ -157,7 +157,17 @@ public class King extends Mob { yell( "You cannot kill me, " + Dungeon.hero.givenName() + "... I am... immortal..." ); } - + + @Override + public void aggro(Char ch) { + super.aggro(ch); + for (Mob mob : Dungeon.level.mobs){ + if (mob instanceof Undead){ + mob.aggro(ch); + } + } + } + private int maxArmySize() { return 1 + MAX_ARMY_SIZE * (HT - HP) / HT; }