v2.5.4: fixed cases where geomancer would be awoken via debuff
This commit is contained in:
+7
@@ -135,6 +135,13 @@ public class GnollGeomancer extends Mob {
|
|||||||
|| hasSapper();
|
|| 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
|
@Override
|
||||||
public int damageRoll() {
|
public int damageRoll() {
|
||||||
return Random.NormalIntRange( 3, 6 );
|
return Random.NormalIntRange( 3, 6 );
|
||||||
|
|||||||
Reference in New Issue
Block a user