1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

vcmi: manaLimit should be spellcaster property

This commit is contained in:
Konstantin
2023-04-10 14:40:08 +03:00
parent 40bea35a26
commit 4f3c826196
7 changed files with 17 additions and 6 deletions

View File

@@ -478,6 +478,11 @@ void CUnitState::getCastDescription(const spells::Spell * spell, const std::vect
text.addReplacement(MetaString::SPELL_NAME, spell->getIndex());
}
int32_t CUnitState::manaLimit() const
{
return 0; //TODO: creature casting with mana mode (for mods)
}
bool CUnitState::ableToRetaliate() const
{
return alive()