mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Added abstract method to caster interface
This commit is contained in:
@@ -669,6 +669,11 @@ void CGHeroInstance::getCastDescription(const spells::Spell * spell, const std::
|
||||
attacked.at(0)->addNameReplacement(text, true);
|
||||
}
|
||||
|
||||
const CGHeroInstance * CGHeroInstance::getHeroCaster() const
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
void CGHeroInstance::spendMana(ServerCallback * server, const int spellCost) const
|
||||
{
|
||||
if(spellCost != 0)
|
||||
|
||||
Reference in New Issue
Block a user