mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-02 22:05:43 +02:00
Remove suspicios code in display damage calculation
This commit is contained in:
parent
16f0714474
commit
0929e009db
@ -524,11 +524,10 @@ void DefaultSpellMechanics::applyBattleEffects(const SpellCastEnvironment * env,
|
|||||||
{
|
{
|
||||||
int unitSpellPower = parameters.casterStack->valOfBonuses(Bonus::SPECIFIC_SPELL_POWER, owner->id.toEnum());
|
int unitSpellPower = parameters.casterStack->valOfBonuses(Bonus::SPECIFIC_SPELL_POWER, owner->id.toEnum());
|
||||||
if(unitSpellPower)
|
if(unitSpellPower)
|
||||||
ctx.sc.dmgToDisplay = spellDamage = parameters.casterStack->count * unitSpellPower; //TODO: handle immunities
|
spellDamage = parameters.casterStack->count * unitSpellPower; //TODO: handle immunities
|
||||||
else //Faerie Dragon
|
else //Faerie Dragon
|
||||||
{
|
{
|
||||||
parameters.usedSpellPower = parameters.casterStack->valOfBonuses(Bonus::CREATURE_SPELL_POWER) * parameters.casterStack->count / 100;
|
parameters.usedSpellPower = parameters.casterStack->valOfBonuses(Bonus::CREATURE_SPELL_POWER) * parameters.casterStack->count / 100;
|
||||||
ctx.sc.dmgToDisplay = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int chainLightningModifier = 0;
|
int chainLightningModifier = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user