mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
vcmi: deprecate MAXED_SPELL
It is almost identical to SPECIAL_FIXED_VALUE_ENCHANT. Replace its usage in JSON and inside deprecated converter to SPECIAL_FIXED_VALUE_ENCHANT. Remove buggy string inside getEffectLevel.
This commit is contained in:
@@ -647,10 +647,7 @@ int64_t CGHeroInstance::getSpecificSpellBonus(const spells::Spell * spell, int64
|
||||
|
||||
int32_t CGHeroInstance::getEffectLevel(const spells::Spell * spell) const
|
||||
{
|
||||
if(hasBonusOfType(Bonus::MAXED_SPELL, spell->getIndex()))
|
||||
return 3;//todo: recheck specialty from where this bonus is. possible bug
|
||||
else
|
||||
return getSpellSchoolLevel(spell);
|
||||
return getSpellSchoolLevel(spell);
|
||||
}
|
||||
|
||||
int32_t CGHeroInstance::getEffectPower(const spells::Spell * spell) const
|
||||
|
||||
Reference in New Issue
Block a user