Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spriest aoe APL presets #3961

Merged
merged 1 commit into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ui/shadow_priest/apls/aoe_2_4.apl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "TypeAPL",
"priorityList": [
{"action":{"castSpell":{"spellId":{"spellId":34433}}}},
{"action":{"autocastOtherCooldowns":{}}},
{"action":{"condition":{"cmp":{"op":"OpLe","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"0.75s"}}}},"castSpell":{"spellId":{"spellId":48300}}}},
{"action":{"condition":{"and":{"vals":[{"cmp":{"op":"OpLe","lhs":{"dotRemainingTime":{"targetUnit":{"type":"Target","index":2},"spellId":{"spellId":48125}}},"rhs":{"const":{"val":"3s"}}}},{"dotIsActive":{"targetUnit":{"type":"Target","index":2},"spellId":{"spellId":48125}}},{"cmp":{"op":"OpGt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"3s"}}}}]}},"channelSpell":{"spellId":{"spellId":48156},"target":{"type":"Target","index":2},"interruptIf":{"const":{"val":"true"}}}}},
{"action":{"condition":{"and":{"vals":[{"cmp":{"op":"OpLe","lhs":{"dotRemainingTime":{"targetUnit":{"type":"Target","index":1},"spellId":{"spellId":48125}}},"rhs":{"const":{"val":"3s"}}}},{"dotIsActive":{"targetUnit":{"type":"Target","index":1},"spellId":{"spellId":48125}}},{"cmp":{"op":"OpGt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"3s"}}}}]}},"channelSpell":{"spellId":{"spellId":48156},"target":{"type":"Target","index":1},"interruptIf":{"const":{"val":"true"}}}}},
{"action":{"condition":{"and":{"vals":[{"cmp":{"op":"OpLe","lhs":{"dotRemainingTime":{"targetUnit":{"type":"Target"},"spellId":{"spellId":48125}}},"rhs":{"const":{"val":"5s"}}}},{"dotIsActive":{"targetUnit":{"type":"Target"},"spellId":{"spellId":48125}}},{"cmp":{"op":"OpGt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"3s"}}}}]}},"channelSpell":{"spellId":{"spellId":48156},"target":{"type":"Target"},"interruptIf":{"const":{"val":"true"}}}}},
{"action":{"condition":{"cmp":{"op":"OpGt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"5s"}}}},"multidot":{"spellId":{"spellId":48160},"maxDots":4,"maxOverlap":{"spellCastTime":{"spellId":{"spellId":48160}}}}}},
{"action":{"multidot":{"spellId":{"spellId":48300},"maxDots":1,"maxOverlap":{}}}},
{"action":{"condition":{"cmp":{"op":"OpGt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"12s"}}}},"multidot":{"spellId":{"spellId":48125},"maxDots":3,"maxOverlap":{"const":{"val":"0ms"}}}}},
{"action":{"condition":{"cmp":{"op":"OpGt","lhs":{"numberTargets":{}},"rhs":{"const":{"val":"2"}}}},"channelSpell":{"spellId":{"spellId":53023},"interruptIf":{"const":{"val":"true"}}}}},
{"action":{"channelSpell":{"spellId":{"spellId":48156},"interruptIf":{"const":{"val":"true"}}}}}
]
}
12 changes: 12 additions & 0 deletions ui/shadow_priest/apls/aoe_4_plus.apl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "TypeAPL",
"priorityList": [
{"action":{"castSpell":{"spellId":{"spellId":34433}}}},
{"action":{"autocastOtherCooldowns":{}}},
{"action":{"condition":{"cmp":{"op":"OpGe","lhs":{"numberTargets":{}},"rhs":{"const":{"val":"6"}}}},"channelSpell":{"spellId":{"spellId":53023},"interruptIf":{"const":{"val":"true"}}}}},
{"action":{"condition":{"cmp":{"op":"OpLe","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"0.75s"}}}},"castSpell":{"spellId":{"spellId":48300}}}},
{"action":{"condition":{"cmp":{"op":"OpGt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"5s"}}}},"multidot":{"spellId":{"spellId":48160},"maxDots":10,"maxOverlap":{"spellCastTime":{"spellId":{"spellId":48160}}}}}},
{"action":{"multidot":{"spellId":{"spellId":48300},"maxDots":1,"maxOverlap":{}}}},
{"action":{"channelSpell":{"spellId":{"spellId":53023},"interruptIf":{"const":{"val":"true"}}}}}
]
}
4 changes: 4 additions & 0 deletions ui/shadow_priest/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import P3Gear from './gear_sets/p3.gear.json';
import P4Gear from './gear_sets/p4.gear.json';

import DefaultApl from './apls/default.apl.json'
import AOE24Apl from './apls/aoe_2_4.apl.json'
import AOE4PlusApl from './apls/aoe_4_plus.apl.json'

// Preset options for this spec.
// Eventually we will import these values for the raid sim too, so its good to
Expand All @@ -46,6 +48,8 @@ export const DefaultRotation = Rotation.create({
});

export const ROTATION_PRESET_DEFAULT = PresetUtils.makePresetAPLRotation('Default', DefaultApl);
export const ROTATION_PRESET_AOE24 = PresetUtils.makePresetAPLRotation('AOE (2 to 4 targets)', AOE24Apl);
export const ROTATION_PRESET_AOE4PLUS = PresetUtils.makePresetAPLRotation('AOE (4+ targets)', AOE4PlusApl);

// Default talents. Uses the wowhead calculator format, make the talents on
// https://wowhead.com/wotlk/talent-calc and copy the numbers in the url.
Expand Down
2 changes: 2 additions & 0 deletions ui/shadow_priest/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ export class ShadowPriestSimUI extends IndividualSimUI<Spec.SpecShadowPriest> {
],
rotations: [
Presets.ROTATION_PRESET_DEFAULT,
Presets.ROTATION_PRESET_AOE4PLUS,
Presets.ROTATION_PRESET_AOE24,
],
// Preset gear configurations that the user can quickly select.
gear: [
Expand Down
Loading