v2.5.3: fixed ooze triggering 'first action' many times in rare cases

This commit is contained in:
Evan Debenham
2024-09-25 14:09:23 -04:00
parent c8e7350e3b
commit facd27b184
@@ -89,15 +89,13 @@ public class Ooze extends Buff {
detach(); detach();
} else if (target.isAlive()) { } else if (target.isAlive()) {
acted = true;
if (Dungeon.scalingDepth() > 5) { if (Dungeon.scalingDepth() > 5) {
target.damage(1 + Dungeon.scalingDepth() / 5, this); target.damage(1 + Dungeon.scalingDepth() / 5, this);
acted = true;
} else if (Dungeon.scalingDepth() == 5){ } else if (Dungeon.scalingDepth() == 5){
target.damage(1, this); //1 dmg per turn vs Goo target.damage(1, this); //1 dmg per turn vs Goo
acted = true;
} else if (Random.Int(2) == 0) { } else if (Random.Int(2) == 0) {
target.damage(1, this); //0.5 dmg per turn in sewers target.damage(1, this); //0.5 dmg per turn in sewers
acted = true;
} }
if (!target.isAlive() && target == Dungeon.hero) { if (!target.isAlive() && target == Dungeon.hero) {