mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Implement behavior
This commit is contained in:
@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user