1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix battle draw scenario

This commit is contained in:
Opuszek
2025-08-26 13:18:27 +02:00
parent 83e2bfde11
commit 568fa41d72
3 changed files with 78 additions and 48 deletions

View File

@@ -522,7 +522,7 @@ void CGCreature::battleFinished(IGameEventCallback & gameEvents, const CGHeroIns
else if(result.winner == BattleSide::NONE) // draw
{
// guarded reward is lost forever on draw
gameEvents.removeObject(this, hero->getOwner());
gameEvents.removeObject(this, result.attacker);
}
else
{