Skip to content

Commit

Permalink
Relations Stage 2 Rollout: Migrate from IsFriendlyTo in Pet handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Warlockbugs committed Nov 8, 2017
1 parent 09af6de commit 4849fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/PetHandler.cpp
Expand Up @@ -274,7 +274,7 @@ void WorldSession::HandlePetAction(WorldPacket& recv_data)
const SpellRangeEntry* sRange = sSpellRangeStore.LookupEntry(spellInfo->rangeIndex);

if (unit_target && !(petUnit->IsWithinDistInMap(unit_target, sRange->maxRange) && petUnit->IsWithinLOSInMap(unit_target))
&& !(GetPlayer()->IsFriendlyTo(unit_target) || petUnit->HasAuraType(SPELL_AURA_MOD_POSSESS)))
&& petUnit->CanAttackNow(unit_target))
{
charmInfo->SetSpellOpener(spellid, sRange->minRange, sRange->maxRange);
spell->finish(false);
Expand Down

0 comments on commit 4849fbe

Please sign in to comment.