From 7fc25319ee200764860cd1c3d1e02e242d303836 Mon Sep 17 00:00:00 2001 From: Opuszek Date: Tue, 8 Jul 2025 10:02:37 +0200 Subject: [PATCH] Update lib/spells/BattleSpellMechanics.cpp Co-authored-by: Ivan Savenko --- lib/spells/BattleSpellMechanics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/spells/BattleSpellMechanics.cpp b/lib/spells/BattleSpellMechanics.cpp index bc498634e..086a9895c 100644 --- a/lib/spells/BattleSpellMechanics.cpp +++ b/lib/spells/BattleSpellMechanics.cpp @@ -460,8 +460,7 @@ void BattleSpellMechanics::reflect(BattleSpellCast & sc, vstd::RNG & rng, const if (!isReceptive(newTarget)) sc.resistedCres.insert(newTarget->unitId()); //A spell can be reflected to then resisted by an immune unit. Consistent with the original game. - beforeCast(sc, rng, - boost::assign::list_of(reflectedTo)); + beforeCast(sc, rng, { reflectedTo }); } const battle::Unit * BattleSpellMechanics::getRandomUnit(vstd::RNG & rng, BattleSide & side)