druid caster form

This commit is contained in:
Yunfan Li
2023-09-05 22:11:04 +08:00
parent e69eccf071
commit 9ad8274fe8
5 changed files with 20 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ bool CastTravelFormAction::isUseful()
bool CastCasterFormAction::isUseful()
{
return botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form", "aquatic form",
"flight form", "swift flight form", "moonkin form", nullptr);
"flight form", "swift flight form", "moonkin form", nullptr) && AI_VALUE2(uint8, "mana", "self target") > sPlayerbotAIConfig->mediumHealth;
}
bool CastCasterFormAction::Execute(Event event)