1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Quick-fix for transmutation skill - same as in SUMMON_GUARDIANS

This commit is contained in:
Dydzio 2023-09-13 19:36:58 +02:00
parent 2fad687691
commit 6435217a8c

View File

@ -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))