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:
@ -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
|
||||
|
Reference in New Issue
Block a user