-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Frostfire spec for fire mage (#936)
- Loading branch information
1 parent
fef6708
commit 1c2ec60
Showing
6 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
#include "FrostFireMageStrategy.h" | ||
|
||
#include "Playerbots.h" | ||
|
||
NextAction** FrostFireMageStrategy::getDefaultActions() | ||
{ | ||
return NextAction::array(0, new NextAction("frostfire bolt", ACTION_DEFAULT + 0.1f), | ||
new NextAction("shoot", ACTION_DEFAULT), NULL); | ||
} | ||
|
||
void FrostFireMageStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) | ||
{ | ||
GenericMageStrategy::InitTriggers(triggers); | ||
|
||
triggers.push_back( | ||
new TriggerNode("hot streak", NextAction::array(0, new NextAction("pyroblast", 25.0f), nullptr))); | ||
triggers.push_back( | ||
new TriggerNode("combustion", NextAction::array(0, new NextAction("combustion", 50.0f), nullptr))); | ||
triggers.push_back( | ||
new TriggerNode("icy veins", NextAction::array(0, new NextAction("icy veins", 60.0f), nullptr))); | ||
} | ||
|
||
void FrostFireMageAoeStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) | ||
{ | ||
triggers.push_back( | ||
new TriggerNode("medium aoe", NextAction::array(0, new NextAction("flamestrike", 20.0f), nullptr))); | ||
triggers.push_back( | ||
new TriggerNode("living bomb", NextAction::array(0, new NextAction("living bomb", 25.0f), nullptr))); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* 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_FROSTFIREMAGESTRATEGY_H | ||
#define _PLAYERBOT_FROSTFIREMAGESTRATEGY_H | ||
|
||
#include "GenericMageStrategy.h" | ||
|
||
class PlayerbotAI; | ||
|
||
class FrostFireMageStrategy : public GenericMageStrategy | ||
{ | ||
public: | ||
FrostFireMageStrategy(PlayerbotAI* botAI) : GenericMageStrategy(botAI) {} | ||
|
||
void InitTriggers(std::vector<TriggerNode*>& triggers) override; | ||
std::string const getName() override { return "frostfire"; } | ||
NextAction** getDefaultActions() override; | ||
}; | ||
|
||
class FrostFireMageAoeStrategy : public CombatStrategy | ||
{ | ||
public: | ||
FrostFireMageAoeStrategy(PlayerbotAI* botAI) : CombatStrategy(botAI) {} | ||
|
||
void InitTriggers(std::vector<TriggerNode*>& triggers) override; | ||
std::string const getName() override { return "frostfire aoe"; } | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters