1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Update lib/spells/BattleSpellMechanics.cpp

Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
This commit is contained in:
Opuszek
2025-07-08 10:02:48 +02:00
committed by GitHub
parent 7fc25319ee
commit 1393ac0420

View File

@@ -463,7 +463,7 @@ void BattleSpellMechanics::reflect(BattleSpellCast & sc, vstd::RNG & rng, const
beforeCast(sc, rng, { reflectedTo });
}
const battle::Unit * BattleSpellMechanics::getRandomUnit(vstd::RNG & rng, BattleSide & side)
const battle::Unit * BattleSpellMechanics::getRandomUnit(vstd::RNG & rng, const BattleSide & side)
{
auto targets = battle()->getBattle()->getUnitsIf([&side](const battle::Unit * unit)
{