Skip to content

Commit

Permalink
Relations Stage 2 Rollout: Migrate from IsFriendlyTo in EffectPickPoc…
Browse files Browse the repository at this point in the history
…ket handler
  • Loading branch information
Warlockbugs committed Nov 8, 2017
1 parent 11a3588 commit 0b3948d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spells/SpellEffects.cpp
Expand Up @@ -6528,7 +6528,7 @@ void Spell::EffectPickPocket(SpellEffectIndex /*eff_idx*/)
return;

// victim must be creature and attackable
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT || m_caster->IsFriendlyTo(unitTarget))
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT || !m_caster->CanAttackNow(unitTarget))
return;

// victim have to be alive and humanoid or undead
Expand Down

0 comments on commit 0b3948d

Please sign in to comment.