🐛Exiting fight happening when one side wins

This commit is contained in:
jonathan
2025-10-05 19:50:05 +02:00
parent 83c9dfc945
commit 3326bde40c
4 changed files with 41 additions and 2 deletions
@@ -50,4 +50,13 @@ public partial class FightSceneSwitcher : Node
};
LoadNext();
}
public void ExitFight()
{
if (FightWorld.Instance.fightHappeningData == null)
throw new Exception("Trying to exit a fight while not in a fight");
FightWorld.Instance.fightHappeningData = null;
LoadNext();
}
}