mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
replaced _preSummonX, _preSummonY, and _preSummonZ in bot with xyz_location m_PreSummonlocation
This commit is contained in:
parent
6b1b083802
commit
381dc7574f
@ -16279,11 +16279,9 @@ bool Bot::HasOrMayGetAggro() {
|
||||
|
||||
void Bot::SetHasBeenSummoned(bool wasSummoned) {
|
||||
_hasBeenSummoned = wasSummoned;
|
||||
if(!wasSummoned) {
|
||||
_preSummonX = 0;
|
||||
_preSummonY = 0;
|
||||
_preSummonZ = 0;
|
||||
}
|
||||
if(!wasSummoned)
|
||||
m_PreSummonLocation = xyz_location::Origin();
|
||||
|
||||
}
|
||||
|
||||
void Bot::SetDefaultBotStance() {
|
||||
|
||||
16
zone/bot.h
16
zone/bot.h
@ -448,9 +448,9 @@ public:
|
||||
uint32 GetAA(uint32 aa_id);
|
||||
void ApplyAABonuses(uint32 aaid, uint32 slots, StatBonuses* newbon);
|
||||
bool GetHasBeenSummoned() { return _hasBeenSummoned; }
|
||||
float GetPreSummonX() { return _preSummonX; }
|
||||
float GetPreSummonY() { return _preSummonY; }
|
||||
float GetPreSummonZ() { return _preSummonZ; }
|
||||
float GetPreSummonX() { return m_PreSummonLocation.m_X; }
|
||||
float GetPreSummonY() { return m_PreSummonLocation.m_Y; }
|
||||
float GetPreSummonZ() { return m_PreSummonLocation.m_Z; }
|
||||
bool GetGroupMessagesOn() { return _groupMessagesOn; }
|
||||
bool GetInHealRotation() { return _isInHealRotation; }
|
||||
bool GetHealRotationActive() { return (GetInHealRotation() && _isHealRotationActive); }
|
||||
@ -535,9 +535,9 @@ 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) { _preSummonX = x; }
|
||||
void SetPreSummonY(float y) { _preSummonY = y; }
|
||||
void SetPreSummonZ(float z) { _preSummonZ = z; }
|
||||
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 SetGroupMessagesOn(bool groupMessagesOn) { _groupMessagesOn = groupMessagesOn; }
|
||||
void SetInHealRotation( bool inRotation ) { _isInHealRotation = inRotation; }
|
||||
void SetHealRotationActive( bool isActive ) { _isHealRotationActive = isActive; }
|
||||
@ -604,9 +604,7 @@ private:
|
||||
int32 end_regen;
|
||||
uint32 timers[MaxTimer];
|
||||
bool _hasBeenSummoned;
|
||||
float _preSummonX;
|
||||
float _preSummonY;
|
||||
float _preSummonZ;
|
||||
xyz_location m_PreSummonLocation;
|
||||
uint8 _spellCastingChances[MaxStances][MaxSpellTypes];
|
||||
bool _groupMessagesOn;
|
||||
bool _isInHealRotation;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user