void PlayerbotWarriorAI::DoNonCombatActions() { PlayerbotAI* ai = GetAI(); Player* m_bot = GetPlayerBot(); Player* m_master = ai->GetLeader(); if (m_bot->getRole() == WarriorProtection && ai->Cast(DEFENSIVE_STANCE)) return; else if (ai->Cast(BERSERKER_STANCE)) return; else if (ai->Cast(BATTLE_STANCE)) return; }
bool PlayerbotWarriorAI::DoProtectSelfAction() { PlayerbotAI *ai = GetAI(); Player *m_bot = GetPlayerBot(); if (m_bot->GetHealthPercent() < 40 && ai->Cast(SHIELD_WALL, m_bot)) return true; if (m_bot->GetHealthPercent() < 60 && ai->Cast(ENRAGED_REGENERATION, m_bot)) return true; if (ai->Cast(SPELL_REFLECTION, m_bot)) return true; return false; }