Core/SAI: Add check so npc will not send text to pet. Also updated isPet() to IsPet().
This commit is contained in:
1 parent
9ec22fffa0
commit
047608e7de
33 files changed
+134
-134
No files matched your search
@@ -50,7 +50,7 @@ class spell_generic_quest_update_entry_SpellScript : public SpellScript
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Creature* creatureTarget = GetHitCreature())
|
||||
if (!creatureTarget->isPet() && creatureTarget->GetEntry() == _originalEntry)
|
||||
if (!creatureTarget->IsPet() && creatureTarget->GetEntry() == _originalEntry)
|
||||
{
|
||||
creatureTarget->UpdateEntry(_newEntry);
|
||||
if (_shouldAttack && creatureTarget->IsAIEnabled)
|
||||
|
||||
Reference in new issue
Block a user