Adds swap event when two creatures swap positions.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2021-03-28 11:58:26 +02:00
parent acacd02ef9
commit 23bd0da646
5 changed files with 25 additions and 2 deletions

View File

@@ -120,5 +120,6 @@ bool BattleSide::SwapPositions(u8 a, u8 b) {
auto creatureA = _creatures[a];
_creatures[a] = _creatures[b];
_creatures[b] = creatureA;
_battle->TriggerEventListener<SwapEvent>(_index, a, b);
return true;
}