mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
This is a complete overhaul of the warlock class, making 3 new strategies (affliction, demonology, and destruction), as well as finishing the warlock tank strategy (shadow ward and searing pain). It also includes a soulstone fix, where the bots can change who they soulstone based on the non-combat strategies you set for them. It also includes a self-resurrect action and trigger that allows the bots to resurrect using a soulstone or reincarnation. Many other skills were added to finish out the warlock skillset.
34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it
|
|
* and/or modify it under version 2 of the License, or (at your option), any later version.
|
|
*/
|
|
|
|
#ifndef _PLAYERBOT_DPSWARLOCKSTRATEGY_H
|
|
#define _PLAYERBOT_DPSWARLOCKSTRATEGY_H
|
|
|
|
#include "GenericWarlockStrategy.h"
|
|
#include "Strategy.h"
|
|
|
|
class PlayerbotAI;
|
|
|
|
class DpsWarlockStrategy : public GenericWarlockStrategy
|
|
{
|
|
public:
|
|
DpsWarlockStrategy(PlayerbotAI* botAI);
|
|
|
|
std::string const getName() override { return "dps"; }
|
|
void InitTriggers(std::vector<TriggerNode*>& triggers) override;
|
|
NextAction** getDefaultActions() override;
|
|
uint32 GetType() const override { return GenericWarlockStrategy::GetType() | STRATEGY_TYPE_DPS; }
|
|
};
|
|
|
|
class DpsAoeWarlockStrategy : public CombatStrategy
|
|
{
|
|
public:
|
|
DpsAoeWarlockStrategy(PlayerbotAI* botAI) : CombatStrategy(botAI) {}
|
|
|
|
void InitTriggers(std::vector<TriggerNode*>& triggers) override;
|
|
std::string const getName() override { return "aoe"; }
|
|
};
|
|
#endif
|