v0.3.2b: prevent DM-300 from awarding time from its own toxic gas

This commit is contained in:
Evan Debenham 2015-11-07 21:37:39 -05:00
parent b733c6f4d0
commit d2dc3aa712

View File

@ -135,7 +135,7 @@ public class DM300 extends Mob {
public void damage(int dmg, Object src) {
super.damage(dmg, src);
LockedFloor lock = Dungeon.hero.buff(LockedFloor.class);
if (lock != null) lock.addTime(dmg*1.5f);
if (lock != null && !immunities().contains(src.getClass())) lock.addTime(dmg*1.5f);
}
@Override