From 6435217a8cec65c218ce7212b5266312be05b9aa Mon Sep 17 00:00:00 2001 From: Dydzio Date: Wed, 13 Sep 2023 19:36:58 +0200 Subject: [PATCH] Quick-fix for transmutation skill - same as in SUMMON_GUARDIANS --- server/CGameHandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp index 2176c66b3..813356a9f 100644 --- a/server/CGameHandler.cpp +++ b/server/CGameHandler.cpp @@ -5730,6 +5730,11 @@ void CGameHandler::handleAfterAttackCasting(bool ranged, const CStack * attacker removeUnits.changedStacks.emplace_back(defender->unitId(), UnitChanges::EOperation::REMOVE); sendAndApply(&removeUnits); sendAndApply(&addUnits); + + // send empty event to client + // temporary(?) workaround to force animations to trigger + StacksInjured fakeEvent; + sendAndApply(&fakeEvent); } if(attacker->hasBonusOfType(BonusType::DESTRUCTION, 0) || attacker->hasBonusOfType(BonusType::DESTRUCTION, 1))