Core/SAI: Add check so npc will not send text to pet. Also updated isPet() to IsPet().

This commit is contained in:
Malcrom committed 2013-06-11 18:39:51 -02:30
1 parent 9ec22fffa0
commit 047608e7de
33 files changed
+134 -134

No files matched your search

+1 -1
View File
@@ -1640,7 +1640,7 @@ class spell_item_crystal_prison_dummy_dnd : public SpellScriptLoader
void HandleDummy(SpellEffIndex /* effIndex */)
{
if (Creature* target = GetHitCreature())
if (target->isDead() && !target->isPet())
if (target->isDead() && !target->IsPet())
{
GetCaster()->SummonGameObject(OBJECT_IMPRISONED_DOOMGUARD, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), target->GetOrientation(), 0, 0, 0, 0, uint32(target->GetRespawnTime()-time(NULL)));
target->DespawnOrUnsummon();