Improve party member to heal and has aura to dispel check performance

This commit is contained in:
Yunfan Li
2024-08-05 15:45:37 +08:00
parent 72b32a1590
commit 8d77666624
5 changed files with 52 additions and 26 deletions

View File

@@ -19,4 +19,10 @@ Value<Unit*>* PartyMemberNeedCureTrigger::GetTargetValue()
return context->GetValue<Unit*>("party member to dispel", dispelType);
}
bool PartyMemberNeedCureTrigger::IsActive()
{
Unit* target = GetTarget();
return target && target->IsInWorld();
}
bool NeedWorldBuffTrigger::IsActive() { return !WorldBuffAction::NeedWorldBuffs(bot).empty(); }