From 688dc4c189afd5b8041d3618a32db202771ff173 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Thu, 29 Sep 2016 19:37:59 +0300 Subject: [PATCH] tweaks --- lib/spells/BattleSpellMechanics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spells/BattleSpellMechanics.cpp b/lib/spells/BattleSpellMechanics.cpp index be3f70617..d4c2d25ae 100644 --- a/lib/spells/BattleSpellMechanics.cpp +++ b/lib/spells/BattleSpellMechanics.cpp @@ -785,7 +785,7 @@ ESpellCastProblem::ESpellCastProblem SpecialRisingSpellMechanics::canBeCast(cons //find alive possible target const CStack * stackToHeal = cb->getStackIf([ctx, this](const CStack * s) { - const bool ownerMatches = !ctx.ti.smart || s->getOwner() == ctx.caster->getOwner(); + const bool ownerMatches = !ctx.ti.smart || s->owner == ctx.caster->getOwner(); return ownerMatches && s->isValidTarget(false) && s->coversPos(ctx.destination) && ESpellCastProblem::OK == owner->isImmuneByStack(ctx.caster, s); }); @@ -795,7 +795,7 @@ ESpellCastProblem::ESpellCastProblem SpecialRisingSpellMechanics::canBeCast(cons //find dead possible target if there is no alive target stackToHeal = cb->getStackIf([ctx, this](const CStack * s) { - const bool ownerMatches = !ctx.ti.smart || s->getOwner() == ctx.caster->getOwner(); + const bool ownerMatches = !ctx.ti.smart || s->owner == ctx.caster->getOwner(); return ownerMatches && s->isValidTarget(true) && s->coversPos(ctx.destination) && ESpellCastProblem::OK == owner->isImmuneByStack(ctx.caster, s); });