diff options
author | megamage <none@none> | 2009-04-29 00:12:28 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-29 00:12:28 -0500 |
commit | 207c3f7afff6ee2b462bd6855487fbcbfdbd63a8 (patch) | |
tree | 23eae4bfc71f2c894f2f565bdb9c54665fade652 /src | |
parent | 8fedcee78bd94b30c459485169d15162c756a3f3 (diff) |
*Fix a bug that player summoned creature does not count player as summoner.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |