mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Raid] Naxx grobbulus
This commit is contained in:
@@ -829,7 +829,7 @@ bool MovementAction::Follow(Unit* target, float distance)
|
||||
|
||||
void MovementAction::UpdateMovementState()
|
||||
{
|
||||
if (bot->Unit::IsInWater() || bot->Unit::IsUnderWater())
|
||||
if (bot->Unit::IsUnderWater())
|
||||
{
|
||||
bot->SetSwim(true);
|
||||
}
|
||||
|
||||
@@ -234,6 +234,8 @@ class CastDeathAndDecayAction : public CastSpellAction
|
||||
{
|
||||
public:
|
||||
CastDeathAndDecayAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "death and decay") { }
|
||||
|
||||
ActionThreatType getThreatType() override { return ActionThreatType::Aoe; }
|
||||
};
|
||||
|
||||
class CastHornOfWinterAction : public CastSpellAction
|
||||
|
||||
@@ -19,6 +19,18 @@
|
||||
#include "WarriorActions.h"
|
||||
#include "DruidBearActions.h"
|
||||
|
||||
float GrobbulusMultiplier::GetValue(Action* action)
|
||||
{
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", "grobbulus");
|
||||
if (!boss) {
|
||||
return 1.0f;
|
||||
}
|
||||
if (dynamic_cast<AvoidAoeAction*>(action)) {
|
||||
return 0.0f;
|
||||
}
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
float HeiganDanceMultiplier::GetValue(Action* action)
|
||||
{
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", "heigan the unclean");
|
||||
|
||||
@@ -5,6 +5,14 @@
|
||||
#include "Multiplier.h"
|
||||
#include "raids/naxxramas/RaidNaxxBossHelper.h"
|
||||
|
||||
class GrobbulusMultiplier : public Multiplier
|
||||
{
|
||||
public:
|
||||
GrobbulusMultiplier(PlayerbotAI* ai) : Multiplier(ai, "grobbulus") {}
|
||||
|
||||
public:
|
||||
virtual float GetValue(Action* action);
|
||||
};
|
||||
class HeiganDanceMultiplier : public Multiplier
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -112,6 +112,7 @@ void RaidNaxxStrategy::InitTriggers(std::vector<TriggerNode*> &triggers)
|
||||
|
||||
void RaidNaxxStrategy::InitMultipliers(std::vector<Multiplier*> &multipliers)
|
||||
{
|
||||
multipliers.push_back(new GrobbulusMultiplier(botAI));
|
||||
multipliers.push_back(new HeiganDanceMultiplier(botAI));
|
||||
multipliers.push_back(new LoathebGenericMultiplier(botAI));
|
||||
multipliers.push_back(new ThaddiusGenericMultiplier(botAI));
|
||||
|
||||
Reference in New Issue
Block a user