better shaman totem strategy

This commit is contained in:
Yunfan Li
2023-10-29 00:16:31 +08:00
parent 8b42ea3e89
commit a76290a149
10 changed files with 108 additions and 32 deletions

View File

@@ -118,9 +118,9 @@ bool CastSpellAction::isUseful()
CastMeleeSpellAction::CastMeleeSpellAction(PlayerbotAI* botAI, std::string const spell) : CastSpellAction(botAI, spell)
{
range = ATTACK_DISTANCE;
Unit* target = AI_VALUE(Unit*, "current target");
if (target)
range = bot->GetMeleeRange(target);
// Unit* target = AI_VALUE(Unit*, "current target");
// if (target)
// range = bot->GetMeleeRange(target);
// range = target->GetCombinedCombatReach();
}