mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11250] Fix create position for summoned creatures.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
789f513ede
commit
167ec0df42
2 changed files with 2 additions and 2 deletions
|
|
@ -1653,7 +1653,7 @@ Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, floa
|
|||
if (GetTypeId()==TYPEID_PLAYER)
|
||||
team = ((Player*)this)->GetTeam();
|
||||
|
||||
CreatureCreatePos pos(GetMap(), x, y, x, ang, GetPhaseMask());
|
||||
CreatureCreatePos pos(GetMap(), x, y, z, ang, GetPhaseMask());
|
||||
|
||||
if (x == 0.0f && y == 0.0f && z == 0.0f)
|
||||
pos = CreatureCreatePos(this, GetOrientation(), CONTACT_DISTANCE, ang);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue