Przeglądaj źródła

Update lib/spells/BattleSpellMechanics.cpp

Co-authored-by: Ivan Savenko <[email protected]>
Opuszek 5 miesięcy temu
rodzic
commit
7fc25319ee
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      lib/spells/BattleSpellMechanics.cpp

+ 1 - 2
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)