mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
- Utgarde Pinnacle implementation
- Culling of Stratholme implementation
- Added additional value ("nearest hostile npcs") needed to expose some hidden trigger-type npc units (eg. frost breath on Skadi fight in UP)
20 lines
538 B
C++
20 lines
538 B
C++
#include "CullingOfStratholmeMultipliers.h"
|
|
#include "CullingOfStratholmeActions.h"
|
|
#include "GenericSpellActions.h"
|
|
#include "ChooseTargetActions.h"
|
|
#include "MovementActions.h"
|
|
#include "CullingOfStratholmeTriggers.h"
|
|
#include "Action.h"
|
|
|
|
float EpochMultiplier::GetValue(Action* action)
|
|
{
|
|
Unit* boss = AI_VALUE2(Unit*, "find target", "chrono-lord epoch");
|
|
if (!boss) { return 1.0f; }
|
|
|
|
if (bot->getClass() == CLASS_HUNTER) { return 1.0f; }
|
|
|
|
if (dynamic_cast<FleeAction*>(action)) { return 0.0f; }
|
|
|
|
return 1.0f;
|
|
}
|