debuff on attacker

This commit is contained in:
Yunfan Li
2023-09-05 01:41:13 +08:00
parent 5b4e2a849e
commit 5e676e60e0
6 changed files with 16 additions and 8 deletions

View File

@@ -292,3 +292,7 @@ Value<Unit*>* BuffOnMainTankAction::GetTargetValue()
return context->GetValue<Unit*>("main tank", spell);
}
bool CastDebuffSpellAction::isUseful()
{
return CastAuraSpellAction::isUseful() && GetTarget() && (GetTarget()->GetHealth() / AI_VALUE(float, "expected group dps")) >= needLifeTime;
}