Hunter melee

This commit is contained in:
Yunfan Li
2023-12-19 20:10:43 +08:00
parent c56b1558b6
commit 9dab10a5df
4 changed files with 32 additions and 12 deletions

View File

@@ -59,7 +59,7 @@ bool CastScareBeastCcAction::Execute(Event event)
bool CastWingClipAction::isUseful()
{
return CastMeleeSpellAction::isUseful() && !botAI->HasAura(spell, GetTarget());
return CastSpellAction::isUseful() && !botAI->HasAura(spell, GetTarget());
}
NextAction** CastWingClipAction::getPrerequisites()
@@ -67,7 +67,7 @@ NextAction** CastWingClipAction::getPrerequisites()
return nullptr;
}
bool CastRaptorStrikeAction::isUseful()
{
return CastMeleeSpellAction::isUseful() && botAI->HasStrategy("close", BOT_STATE_COMBAT);
}
// bool CastRaptorStrikeAction::isUseful()
// {
// return CastMeleeSpellAction::isUseful() && botAI->HasStrategy("close", BOT_STATE_COMBAT);
// }