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

View File

@@ -89,15 +89,13 @@ public class Ooze extends Buff {
detach();
} else if (target.isAlive()) {
acted = true;
if (Dungeon.scalingDepth() > 5) {
target.damage(1 + Dungeon.scalingDepth() / 5, this);
acted = true;
} else if (Dungeon.scalingDepth() == 5){
target.damage(1, this); //1 dmg per turn vs Goo
acted = true;
} else if (Random.Int(2) == 0) {
target.damage(1, this); //0.5 dmg per turn in sewers
acted = true;
}
if (!target.isAlive() && target == Dungeon.hero) {