Auto avoid aoe config

This commit is contained in:
Yunfan Li
2024-04-14 13:03:18 +08:00
parent df1b280b14
commit 0499e5da46
10 changed files with 76 additions and 9 deletions

View File

@@ -299,6 +299,7 @@ class ValueContext : public NamedObjectContext<UntypedValue>
creators["expected lifetime"] = &ValueContext::expected_lifetime;
creators["expected group dps"] = &ValueContext::expected_group_dps;
creators["area debuff"] = &ValueContext::area_debuff;
creators["nearest trap with damage"] = &ValueContext::nearest_trap_with_damange;
}
private:
@@ -501,6 +502,7 @@ class ValueContext : public NamedObjectContext<UntypedValue>
static UntypedValue* expected_lifetime(PlayerbotAI* ai) { return new ExpectedLifetimeValue(ai); }
static UntypedValue* expected_group_dps(PlayerbotAI* ai) { return new ExpectedGroupDpsValue(ai); }
static UntypedValue* area_debuff(PlayerbotAI* ai) { return new AreaDebuffValue(ai); }
static UntypedValue* nearest_trap_with_damange(PlayerbotAI* ai) { return new NearestTrapWithDamageValue(ai); }
};
#endif