1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Sacrificing artifacts. [Code is one giant workaround but should work good enough.] Updated changelog.

This commit is contained in:
Michał W. Urbańczyk
2010-07-23 12:02:15 +00:00
parent 215dc95acb
commit 8487653a8e
16 changed files with 433 additions and 102 deletions

View File

@ -2635,7 +2635,7 @@ std::pair<ui32, ui32> BattleInfo::calculateDmgRange( const CStack* attacker, con
if(defendingHero)
{
multBonus *= (std::max(0, 100-attackerHero->valOfBonuses(Bonus::SECONDARY_SKILL_PREMY, 23))) / 100.0f;
multBonus *= (std::max(0, 100-defendingHero->valOfBonuses(Bonus::SECONDARY_SKILL_PREMY, 23))) / 100.0f;
}
//handling hate effect