mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
feat(Core/Misc): change how Position struct is retrieved (#9017)
Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bc changes by return a Position object instead of accepting a Position parameter by reference.
Cherry pick of 2585e799f9
This commit is contained in:
@@ -1199,8 +1199,7 @@ public:
|
||||
events.CancelEvent(EVENT_HORSEMAN_CLEAVE);
|
||||
|
||||
// Summon Head
|
||||
Position pos;
|
||||
me->GetNearPosition(pos, 15.0f, rand_norm() * 2 * M_PI);
|
||||
Position pos = me->GetNearPosition(15.0f, rand_norm() * 2 * M_PI);
|
||||
if (Creature* cr = me->SummonCreature(NPC_HORSEMAN_HEAD, pos))
|
||||
{
|
||||
if (health)
|
||||
|
||||
Reference in New Issue
Block a user