mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
Replace GetPreSummonX(), GetPreSummonY(), GetPreSummonZ() with GetPreSummonLocation as xyz_location
This commit is contained in:
parent
381dc7574f
commit
98a8ddbb21
@ -3371,7 +3371,7 @@ void Bot::AI_Process() {
|
|||||||
if(GetHasBeenSummoned()) {
|
if(GetHasBeenSummoned()) {
|
||||||
if(IsBotCaster() || IsBotArcher()) {
|
if(IsBotCaster() || IsBotArcher()) {
|
||||||
if (AImovement_timer->Check()) {
|
if (AImovement_timer->Check()) {
|
||||||
if(!GetTarget() || (IsBotCaster() && !IsBotCasterCombatRange(GetTarget())) || (IsBotArcher() && IsArcheryRange(GetTarget())) || (DistNoRootNoZ(GetPreSummonX(), GetPreSummonY()) < 10)) {
|
if(!GetTarget() || (IsBotCaster() && !IsBotCasterCombatRange(GetTarget())) || (IsBotArcher() && IsArcheryRange(GetTarget())) || (DistNoRootNoZ(m_PreSummonLocation.m_X, m_PreSummonLocation.m_Y) < 10)) {
|
||||||
if(GetTarget())
|
if(GetTarget())
|
||||||
FaceTarget(GetTarget());
|
FaceTarget(GetTarget());
|
||||||
SetHasBeenSummoned(false);
|
SetHasBeenSummoned(false);
|
||||||
@ -3380,8 +3380,8 @@ void Bot::AI_Process() {
|
|||||||
if(GetTarget() && GetTarget()->GetHateTop() && GetTarget()->GetHateTop() != this)
|
if(GetTarget() && GetTarget()->GetHateTop() && GetTarget()->GetHateTop() != this)
|
||||||
{
|
{
|
||||||
mlog(AI__WAYPOINTS, "Returning to location prior to being summoned.");
|
mlog(AI__WAYPOINTS, "Returning to location prior to being summoned.");
|
||||||
CalculateNewPosition2(GetPreSummonX(), GetPreSummonY(), GetPreSummonZ(), GetRunspeed());
|
CalculateNewPosition2(m_PreSummonLocation.m_X, m_PreSummonLocation.m_Y, m_PreSummonLocation.m_Z, GetRunspeed());
|
||||||
SetHeading(CalculateHeadingToTarget(GetPreSummonX(), GetPreSummonY()));
|
SetHeading(CalculateHeadingToTarget(m_PreSummonLocation.m_X, m_PreSummonLocation.m_Y));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -448,9 +448,7 @@ public:
|
|||||||
uint32 GetAA(uint32 aa_id);
|
uint32 GetAA(uint32 aa_id);
|
||||||
void ApplyAABonuses(uint32 aaid, uint32 slots, StatBonuses* newbon);
|
void ApplyAABonuses(uint32 aaid, uint32 slots, StatBonuses* newbon);
|
||||||
bool GetHasBeenSummoned() { return _hasBeenSummoned; }
|
bool GetHasBeenSummoned() { return _hasBeenSummoned; }
|
||||||
float GetPreSummonX() { return m_PreSummonLocation.m_X; }
|
const xyz_location GetPreSummonLocation() const { return m_PreSummonLocation; }
|
||||||
float GetPreSummonY() { return m_PreSummonLocation.m_Y; }
|
|
||||||
float GetPreSummonZ() { return m_PreSummonLocation.m_Z; }
|
|
||||||
bool GetGroupMessagesOn() { return _groupMessagesOn; }
|
bool GetGroupMessagesOn() { return _groupMessagesOn; }
|
||||||
bool GetInHealRotation() { return _isInHealRotation; }
|
bool GetInHealRotation() { return _isInHealRotation; }
|
||||||
bool GetHealRotationActive() { return (GetInHealRotation() && _isHealRotationActive); }
|
bool GetHealRotationActive() { return (GetInHealRotation() && _isHealRotationActive); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user