diff --git a/zone/bot.cpp b/zone/bot.cpp index c3417f30e..49d3e6206 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -2120,7 +2120,6 @@ bool Bot::Process() _botOwner = 0; _botOwnerCharacterID = 0; - _previousTarget = 0; return false; } @@ -2398,11 +2397,9 @@ bool Bot::CanDoSpecialAttack(Mob *other) { return true; } -void Bot::SetTarget(Mob* mob) { - if(mob != this) { - if(mob != GetTarget()) - _previousTarget = GetTarget(); - +void Bot::SetTarget(Mob *mob) +{ + if (mob != this) { NPC::SetTarget(mob); } } @@ -3917,7 +3914,6 @@ void Bot::Depop() { _botOwner = 0; _botOwnerCharacterID = 0; - _previousTarget = 0; NPC::Depop(false); } diff --git a/zone/bot.h b/zone/bot.h index 04eeab6d3..0f8906c32 100644 --- a/zone/bot.h +++ b/zone/bot.h @@ -786,7 +786,6 @@ private: EQ::InventoryProfile m_inv; double _lastTotalPlayTime; time_t _startTotalPlayTime; - Mob* _previousTarget; uint32 _guildId; uint8 _guildRank; std::string _guildName;