Files
mod-playerbots/src/strategy/dungeons/wotlk/forgeofsouls/FosMultipliers.cpp
chris 07da4ad959 date: 2024-10-30
fos bronjahm v1
2024-10-30 17:03:46 +08:00

27 lines
810 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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; }