Rework Battle::Unit::CalculateSpellDamage()
method to use fheroes2::getSpellDamage()
and fheroes2::getMonsterData()
functions
#8708
Labels
Milestone
Preliminary checks
Describe the problem requiring a solution
The current code contains hardcoded monsters and spells to evaluate spell damage. This is wrong as such code is not scalable for cases when we would add new monsters (or modding capabilities).
Describe the possible solution
Make use of
fheroes2::getSpellDamage()
andfheroes2::getMonsterData()
functionsAdditional info
No response
The text was updated successfully, but these errors were encountered: