1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

max range for spellcaster

This commit is contained in:
Laserlicht
2025-06-25 15:08:11 +02:00
parent de893a3575
commit 9bfe3a8195
14 changed files with 75 additions and 1 deletions

View File

@@ -783,6 +783,11 @@ int32_t CGHeroInstance::getCasterUnitId() const
return id.getNum();
}
BattleHex CGHeroInstance::getCasterPosition() const
{
return BattleHex::INVALID;
}
int32_t CGHeroInstance::getSpellSchoolLevel(const spells::Spell * spell, SpellSchool * outSelectedSchool) const
{
int32_t skill = -1; //skill level
@@ -860,6 +865,11 @@ int64_t CGHeroInstance::getEffectValue(const spells::Spell * spell) const
return 0;
}
int64_t CGHeroInstance::getEffectRange(const spells::Spell * spell) const
{
return 0;
}
PlayerColor CGHeroInstance::getCasterOwner() const
{
return tempOwner;