v2.5.4: fixed cases where geomancer would be awoken via debuff
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user