mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
Continue moving spell cast logic
This commit is contained in:
@ -101,10 +101,11 @@ CSpell::~CSpell()
|
||||
delete mechanics;
|
||||
}
|
||||
|
||||
void CSpell::battleCast(const SpellCastEnvironment * env, const BattleSpellCastParameters & parameters) const
|
||||
void CSpell::battleCast(const SpellCastEnvironment * env, BattleSpellCastParameters & parameters) const
|
||||
{
|
||||
if(!mechanics->battleCast(env, parameters))
|
||||
logGlobal->errorStream() << "Internal error during spell cast";
|
||||
assert(env);
|
||||
|
||||
mechanics->battleCast(env, parameters);
|
||||
}
|
||||
|
||||
bool CSpell::isCastableBy(const IBonusBearer * caster, bool hasSpellBook, const std::set<SpellID> & spellBook) const
|
||||
|
Reference in New Issue
Block a user