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

Implement behavior

This commit is contained in:
nordsoft
2023-04-10 05:46:45 +04:00
parent c0b90432cb
commit 464ad63749
3 changed files with 9 additions and 4 deletions

View File

@ -365,9 +365,10 @@ void CRewardableObject::grantRewardAfterLevelup(const CRewardVisitInfo & info, c
if(!info.reward.casts.empty())
{
caster = std::make_unique<spells::OuterCaster>(hero, 3);
for(const auto & c : info.reward.casts)
{
cb->castSpell(hero, c, int3{-1, -1, -1});
cb->castSpell(caster.get(), c, int3{-1, -1, -1});
}
}