1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #2825 from dydzio0614/transmutation-fix

Quick-fix for transmutation skill - same as in SUMMON_GUARDIANS
This commit is contained in:
Ivan Savenko
2023-09-13 22:00:01 +03:00
committed by GitHub

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