1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Change callback interface

This commit is contained in:
nordsoft
2023-04-10 05:40:03 +04:00
parent 56b0e900d8
commit c0b90432cb
4 changed files with 10 additions and 5 deletions

View File

@ -6282,14 +6282,14 @@ bool CGameHandler::moveStack(const StackLocation &src, const StackLocation &dst,
return true;
}
void CGameHandler::castSpell(const CGHeroInstance *hero, SpellID spellID, const int3 &pos)
void CGameHandler::castSpell(const spells::Caster * caster, SpellID spellID, const int3 &pos)
{
const CSpell * s = spellID.toSpell();
if(!s)
return;
AdventureSpellCastParameters p;
p.caster = hero;
p.caster = caster;
p.pos = pos;
s->adventureCast(spellEnv, p);