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:04:23 +02:00
committed by GitHub
parent 1393ac0420
commit c78e8aa69f

View File

@@ -437,7 +437,7 @@ void BattleSpellMechanics::beforeCast(BattleSpellCast & sc, vstd::RNG & rng, con
bool BattleSpellMechanics::isReflected(const battle::Unit * unit, vstd::RNG & rng)
{
auto range = owner -> getLevelInfo(getRangeLevel()).range;
const auto directSpellRange = boost::assign::list_of(0);
const std::vector<int> directSpellRange = { 0 };
const std::string magicMirrorCacheStr = "type_MAGIC_MIRROR";
static const auto magicMirrorSelector = Selector::type()(BonusType::MAGIC_MIRROR);