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

Use battle side instead of player color for fire shield damage formula

This commit is contained in:
Ivan Savenko
2023-12-09 18:48:53 +02:00
parent 2de7a3939a
commit 9a52131c82

View File

@@ -1032,7 +1032,7 @@ void BattleActionProcessor::makeAttack(const CBattleInfoCallback & battle, const
const CStack * actor = item.first; const CStack * actor = item.first;
int64_t rawDamage = item.second; int64_t rawDamage = item.second;
const CGHeroInstance * actorOwner = battle.battleGetFightingHero(actor->unitOwner()); const CGHeroInstance * actorOwner = battle.battleGetFightingHero(actor->unitSide());
if(actorOwner) if(actorOwner)
{ {