mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
naxxramas gluth
This commit is contained in:
@@ -244,30 +244,29 @@ float AnubrekhanGenericMultiplier::GetValue(Action* action)
|
||||
// return 1.0f;
|
||||
// }
|
||||
|
||||
// float GluthGenericMultiplier::GetValue(Action* action)
|
||||
// {
|
||||
// Unit* boss = AI_VALUE2(Unit*, "find target", "gluth");
|
||||
// if (!boss) {
|
||||
// return 1.0f;
|
||||
// }
|
||||
// if ((dynamic_cast<DpsAssistAction*>(action) ||
|
||||
// dynamic_cast<TankAssistAction*>(action) ||
|
||||
// dynamic_cast<FleeAction*>(action) ||
|
||||
// dynamic_cast<CastDebuffSpellOnAttackerAction*>(action) ||
|
||||
// dynamic_cast<CastStarfallAction*>(action))) {
|
||||
// return 0.0f;
|
||||
// }
|
||||
float GluthGenericMultiplier::GetValue(Action* action)
|
||||
{
|
||||
if (!helper.UpdateBossAI()) {
|
||||
return 1.0f;
|
||||
}
|
||||
if ((dynamic_cast<DpsAssistAction*>(action) ||
|
||||
dynamic_cast<TankAssistAction*>(action) ||
|
||||
dynamic_cast<FleeAction*>(action) ||
|
||||
dynamic_cast<CastDebuffSpellOnAttackerAction*>(action) ||
|
||||
dynamic_cast<CastStarfallAction*>(action))) {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
// if (botAI->IsMainTank(bot)) {
|
||||
// Aura* aura = botAI->GetAuraWithDuration("mortal wound", bot);
|
||||
// if (aura && aura->GetStackAmount() >= 5) {
|
||||
// if (dynamic_cast<CastTauntAction*>(action) ||
|
||||
// dynamic_cast<CastDarkCommandAction*>(action) ||
|
||||
// dynamic_cast<CastHandOfReckoningAction*>(action) ||
|
||||
// dynamic_cast<CastGrowlAction*>(action)) {
|
||||
// return 0.0f;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return 1.0f;
|
||||
// }
|
||||
if (botAI->IsMainTank(bot)) {
|
||||
Aura* aura = botAI->GetAura("mortal wound", bot, false, true);
|
||||
if (aura && aura->GetStackAmount() >= 5) {
|
||||
if (dynamic_cast<CastTauntAction*>(action) ||
|
||||
dynamic_cast<CastDarkCommandAction*>(action) ||
|
||||
dynamic_cast<CastHandOfReckoningAction*>(action) ||
|
||||
dynamic_cast<CastGrowlAction*>(action)) {
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user