mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-31 01:13:48 +00:00
date: 2024-10-30
fos bronjahm v1
This commit is contained in:
26
src/strategy/dungeons/wotlk/forgeofsouls/FosMultipliers.cpp
Normal file
26
src/strategy/dungeons/wotlk/forgeofsouls/FosMultipliers.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "FosMultipliers.h"
|
||||
#include "FosActions.h"
|
||||
#include "GenericSpellActions.h"
|
||||
#include "ChooseTargetActions.h"
|
||||
#include "MovementActions.h"
|
||||
#include "FosTriggers.h"
|
||||
|
||||
|
||||
float BronjahmMultiplier::GetValue(Action* action) {
|
||||
Unit* boss = nullptr;
|
||||
boss = AI_VALUE2(Unit *, "find target", "bronjahm");
|
||||
if (boss && boss->HasUnitState(UNIT_STATE_CASTING) && boss->FindCurrentSpellBySpellId(SPELL_CORRUPT_SOUL))
|
||||
{
|
||||
if (dynamic_cast<MovementAction*>(action) && !dynamic_cast<MoveFromBronjahmAction*>(action))
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
return 1.0f; }
|
||||
|
||||
float AttackFragmentMultiplier::GetValue(Action* action)
|
||||
{
|
||||
auto isTank = botAI->IsTank();
|
||||
if (isTank && dynamic_cast<AttackCorruptedSoulFragmentAction>(action))
|
||||
return 0.0f;
|
||||
return 1.0f; }
|
||||
Reference in New Issue
Block a user