Skip to content

Commit

Permalink
add spriest aoe APL presets (#3961)
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green committed Oct 28, 2023
1 parent c2dcfed commit f698c5b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
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

0 comments on commit f698c5b

Please sign in to comment.