mxwow modules
This commit is contained in:
@@ -8,8 +8,18 @@
|
||||
#include "Event.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "Player.h"
|
||||
#include "PlayerbotAIConfig.h"
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool CastStealthAction::isUseful()
|
||||
{
|
||||
Unit* target = AI_VALUE(Unit*, "current target");
|
||||
if (target && bot->GetDistance(target) >= sPlayerbotAIConfig->spellDistance)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool CastStealthAction::isPossible()
|
||||
{
|
||||
// do not use with WSG flag or EYE flag
|
||||
|
||||
Reference in New Issue
Block a user