mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 02:10:28 +00:00
debuff on attacker
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user