v2.5.4: fixed cases where geomancer would be awoken via debuff

This commit is contained in:
Evan Debenham
2024-10-07 11:32:46 -04:00
parent 2b6d21be55
commit 8a143658fb

View File

@@ -135,6 +135,13 @@ public class GnollGeomancer extends Mob {
|| hasSapper();
}
@Override
public boolean add(Buff buff) {
//immune to buffs and debuff (except its own rock armor) while sleeping
if (state == SLEEPING && !(buff instanceof RockArmor)) return false;
else return super.add(buff);
}
@Override
public int damageRoll() {
return Random.NormalIntRange( 3, 6 );