mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 01:49:09 +00:00
Channel Cancel checks for Channeled AOE DPS Spells
Hello everyone, I liked the channel cancel I did on mage recently, where they cancel blizzard if there is only 1 enemy left. I decided to do the same for the following classes: Druid: Hurricane Hunter: Volley Priest: Mind Sear Warlock: Rain of Fire I moved the "ChannelCancel" action to it's own file, so other classes could benefit from it. I removed it from the mageactions.
This commit is contained in:
@@ -105,6 +105,7 @@ public:
|
||||
creators["silence"] = &PriestTriggerFactoryInternal::silence;
|
||||
creators["silence on enemy healer"] = &PriestTriggerFactoryInternal::silence_on_enemy_healer;
|
||||
creators["shadowfiend"] = &PriestTriggerFactoryInternal::shadowfiend;
|
||||
creators["mind sear channel check"] = &PriestTriggerFactoryInternal::mind_sear_channel_check;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -148,6 +149,7 @@ private:
|
||||
static Trigger* silence(PlayerbotAI* botAI) { return new SilenceTrigger(botAI); }
|
||||
static Trigger* chastise(PlayerbotAI* botAI) { return new ChastiseTrigger(botAI); }
|
||||
static Trigger* binding_heal(PlayerbotAI* botAI) { return new BindingHealTrigger(botAI); }
|
||||
static Trigger* mind_sear_channel_check(PlayerbotAI* botAI) { return new MindSearChannelCheckTrigger(botAI); }
|
||||
};
|
||||
|
||||
class PriestAiObjectContextInternal : public NamedObjectContext<Action>
|
||||
@@ -388,4 +390,4 @@ void PriestAiObjectContext::BuildSharedTriggerContexts(SharedNamedObjectContextL
|
||||
void PriestAiObjectContext::BuildSharedValueContexts(SharedNamedObjectContextList<UntypedValue>& valueContexts)
|
||||
{
|
||||
AiObjectContext::BuildSharedValueContexts(valueContexts);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user