Fix flee odds being incorrect
Build / Build (push) Successful in 57s

This commit is contained in:
Deukhoofd committed 2025-11-08 10:32:29 +01:00
1 parent 90eaeb1a72
commit fa05cdd773
3 files changed
+35 -2

No files matched your search

+4
View File
@@ -162,10 +162,14 @@ public static class TurnRunner
}
if (!battle.Library.MiscLibrary.CanFlee(battle, fleeChoice))
{
battle.EventHook.Invoke(new FleeEvent(user, false));
return;
}
var userSide = battle.Sides[battleData.SideIndex];
userSide.MarkAsFled();
battle.EventHook.Invoke(new FleeEvent(user, true));
battle.ValidateBattleState();
}