Skip to content

Commit

Permalink
Relations Stage 2 Rollout: Migrate from IsFriendlyTo in Righteous Def…
Browse files Browse the repository at this point in the history
…ense dummy
  • Loading branch information
Warlockbugs committed Nov 8, 2017
1 parent fee5e2e commit 11a3588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spells/SpellEffects.cpp
Expand Up @@ -3848,7 +3848,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
}

// 31989 -> dummy effect (step 1) + dummy effect (step 2) -> 31709 (taunt like spell for each target)
Unit* friendTarget = !unitTarget || unitTarget->IsFriendlyTo(m_caster) ? unitTarget : unitTarget->getVictim();
Unit* friendTarget = !unitTarget || m_caster->CanAssist(unitTarget) ? unitTarget : unitTarget->getVictim();

// non-standard cast requirement check
if (!friendTarget || friendTarget->getAttackers().empty())
Expand Down

0 comments on commit 11a3588

Please sign in to comment.