mxwow modules

This commit is contained in:
mikx
2025-03-24 23:53:45 -04:00
parent 93073b0be2
commit e87efbaf6e
99 changed files with 4909 additions and 814 deletions

View File

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