diff --git a/zone/bot.h b/zone/bot.h index a370f9ece..47fafa052 100644 --- a/zone/bot.h +++ b/zone/bot.h @@ -533,9 +533,7 @@ public: void SetSpellRecastTimer(int timer_index, int32 recast_delay); void SetDisciplineRecastTimer(int timer_index, int32 recast_delay); void SetHasBeenSummoned(bool s); - void SetPreSummonX(float x) { m_PreSummonLocation.m_X = x; } - void SetPreSummonY(float y) { m_PreSummonLocation.m_Y = y; } - void SetPreSummonZ(float z) { m_PreSummonLocation.m_Z = z; } + void SetPreSummonLocation(const xyz_location& location) { m_PreSummonLocation = location; } void SetGroupMessagesOn(bool groupMessagesOn) { _groupMessagesOn = groupMessagesOn; } void SetInHealRotation( bool inRotation ) { _isInHealRotation = inRotation; } void SetHealRotationActive( bool isActive ) { _isHealRotationActive = isActive; } diff --git a/zone/mob.cpp b/zone/mob.cpp index 8ccbfe5fe..18616323a 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -2234,9 +2234,7 @@ bool Mob::HateSummon() { if(target && target->IsBot()) { // set pre summoning info to return to (to get out of melee range for caster) target->CastToBot()->SetHasBeenSummoned(true); - target->CastToBot()->SetPreSummonX(target->GetX()); - target->CastToBot()->SetPreSummonY(target->GetY()); - target->CastToBot()->SetPreSummonZ(target->GetZ()); + target->CastToBot()->SetPreSummonLocation(target->GetPosition()); } #endif //BOTS