Merge branch 'liyunfan1223:master' into bot_questing

This commit is contained in:
Atidote
2024-08-05 17:58:30 +02:00
committed by GitHub
12 changed files with 71 additions and 39 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(); }

View File

@@ -46,6 +46,7 @@ public:
}
Value<Unit*>* GetTargetValue() override;
bool IsActive() override;
};
class NeedWorldBuffTrigger : public Trigger