1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

* support for armor of the damned

This commit is contained in:
mateuszb
2010-05-19 18:06:16 +00:00
parent 1002bd2b4f
commit 0ac8430b11
4 changed files with 26 additions and 6 deletions

View File

@ -2776,10 +2776,10 @@ std::set<CStack*> BattleInfo::getAttackedCreatures( const CSpell * s, int skillL
return attackedCres;
}
int BattleInfo::calculateSpellDuration(const CSpell * spell, const CGHeroInstance * caster)
int BattleInfo::calculateSpellDuration( const CSpell * spell, const CGHeroInstance * caster, int usedSpellPower )
{
if(!caster) //TODO: something better
return 5;
return std::max(5, usedSpellPower);
switch(spell->id)
{
case 56: //frenzy