UI now shows spell range from config

This commit is contained in:
Ivan Savenko committed 2025-07-11 12:06:01 +03:00
1 parent 79f3126c63
commit 5ada2d19e1
16 files changed
+44 -40

No files matched your search

+10
View File
@@ -91,6 +91,16 @@ void PlayerLocalState::verifyPath(const CGHeroInstance * h)
setPath(h, getPath(h).endPos());
}
SpellID PlayerLocalState::getCurrentSpell() const
{
return currentSpell;
}
void PlayerLocalState::setCurrentSpell(SpellID castedSpell)
{
currentSpell = castedSpell;
}
const CGHeroInstance * PlayerLocalState::getCurrentHero() const
{
if(currentSelection && currentSelection->ID == Obj::HERO)