SetPreSummonX(), SetPreSummonY(), and SetPreSummonZ() converted to SetPreSummonLocation()

This commit is contained in:
Arthur Ice 2014-11-30 19:34:44 -08:00
parent 98a8ddbb21
commit 70d26a532c
2 changed files with 2 additions and 6 deletions

View File

@ -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; }

View File

@ -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