1
0
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:
AlexVinS
2014-11-25 16:16:49 +03:00
parent d87153a610
commit a387ad0d09
4 changed files with 340 additions and 22 deletions

View File

@ -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