v3.0.0: fixed geomancer rockfall be cleared on save/load

This commit is contained in:
Evan Debenham
2025-01-21 14:05:02 -05:00
parent 873b5cc8e7
commit 5e8bae8cfe

View File

@@ -137,9 +137,12 @@ public class GnollGeomancer extends Mob {
@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);
//immune to buffs and debuff (except its own buffs) while sleeping
if (state == SLEEPING && !(buff instanceof RockArmor || buff instanceof DelayedRockFall)){
return false;
} else {
return super.add(buff);
}
}
@Override