From 475d70284caf8ebb09f20ed9ee71ef5c3c3cf755 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 7 Aug 2021 18:12:14 -0400 Subject: [PATCH] v0.9.4: debuffing statues now makes them aggressive --- .../shatteredpixeldungeon/actors/mobs/Statue.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Statue.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Statue.java index ae5336103..5517a102f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Statue.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Statue.java @@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.mobs; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.items.Generator; import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon; import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon.Enchantment; @@ -108,6 +109,14 @@ public class Statue extends Mob { return Random.NormalIntRange(0, Dungeon.depth + weapon.defenseFactor(this)); } + @Override + public void add(Buff buff) { + super.add(buff); + if (state == PASSIVE && buff.type == Buff.buffType.NEGATIVE){ + state = HUNTING; + } + } + @Override public void damage( int dmg, Object src ) {