From 207c3f7afff6ee2b462bd6855487fbcbfdbd63a8 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 29 Apr 2009 00:12:28 -0500 Subject: *Fix a bug that player summoned creature does not count player as summoner. --HG-- branch : trunk --- src/game/Object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 1cab9d9b99c..eb7ce37734d 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1661,7 +1661,7 @@ TempSummon* WorldObject::SummonCreature(uint32 entry, float x, float y, float z, if (x == 0.0f && y == 0.0f && z == 0.0f) GetClosePoint(x, y, z, GetObjectSize()); - TempSummon *pCreature = map->SummonCreature(entry, x, y, z, ang, NULL, duration, GetTypeId() == TYPEID_UNIT ? (Unit*)this : NULL); + TempSummon *pCreature = map->SummonCreature(entry, x, y, z, ang, NULL, duration, isType(TYPEMASK_UNIT) ? (Unit*)this : NULL); if(!pCreature) return NULL; -- cgit v1.2.3