mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-05 13:04:54 +02:00
Fix mana drain not refreshing battle hero window mana
This commit is contained in:
parent
43096f0ed1
commit
207a73b9de
@ -898,6 +898,12 @@ void CPlayerInterface::battleTriggerEffect (const BattleTriggerEffect & bte)
|
||||
|
||||
RETURN_IF_QUICK_COMBAT;
|
||||
battleInt->effectsController->battleTriggerEffect(bte);
|
||||
|
||||
if(bte.effect == vstd::to_underlying(BonusType::MANA_DRAIN))
|
||||
{
|
||||
const CGHeroInstance * manaDrainedHero = LOCPLINT->cb->getHero(ObjectInstanceID(bte.additionalInfo));
|
||||
battleInt->windowObject->heroManaPointsChanged(manaDrainedHero);
|
||||
}
|
||||
}
|
||||
void CPlayerInterface::battleStacksAttacked(const std::vector<BattleStackAttacked> & bsa, bool ranged)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user