Skip to content

Commit

Permalink
add starfire glyph APL preset (#4018)
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green authored Nov 8, 2023
1 parent c3c785d commit 25cd0a8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions ui/balance_druid/apls/p4_starfire_glyph.apl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"type": "TypeAPL",
"prepullActions": [
{"action":{"castSpell":{"spellId":{"spellId":48470}}},"doAtValue":{"const":{"val":"-2.3s"}}},
{"action":{"castSpell":{"spellId":{"otherId":"OtherActionPotion"}}},"doAtValue":{"const":{"val":"-1s"}}},
{"action":{"castSpell":{"spellId":{"spellId":48461}}},"doAtValue":{"const":{"val":"-1s"}}}
],
"priorityList": [
{"action":{"condition":{"cmp":{"op":"OpGt","lhs":{"currentTime":{}},"rhs":{"const":{"val":"5s"}}}},"castSpell":{"spellId":{"spellId":2825,"tag":-1}}}},
{"action":{"condition":{"cmp":{"op":"OpLt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"1s"}}}},"castSpell":{"spellId":{"spellId":48463}}}},
{"action":{"castSpell":{"spellId":{"itemId":41119}}}},
{"action":{"autocastOtherCooldowns":{}}},
{"action":{"condition":{"cmp":{"op":"OpGt","lhs":{"remainingTime":{}},"rhs":{"const":{"val":"20s"}}}},"castSpell":{"spellId":{"spellId":65861}}}},
{"action":{"condition":{"cmp":{"op":"OpGt","lhs":{"currentTime":{}},"rhs":{"const":{"val":"0s"}}}},"castSpell":{"spellId":{"spellId":53201}}}},
{"action":{"condition":{"and":{"vals":[{"cmp":{"op":"OpGt","lhs":{"auraRemainingTime":{"auraId":{"spellId":48518}}},"rhs":{"const":{"val":"8s"}}}},{"auraIsActiveWithReactionTime":{"auraId":{"spellId":48518}}}]}},"castSpell":{"spellId":{"spellId":54758}}}},
{"action":{"condition":{"and":{"vals":[{"cmp":{"op":"OpGt","lhs":{"auraRemainingTime":{"auraId":{"spellId":48518}}},"rhs":{"const":{"val":"8s"}}}},{"auraIsActiveWithReactionTime":{"auraId":{"spellId":48518}}}]}},"castSpell":{"spellId":{"otherId":"OtherActionPotion"}}}},
{"action":{"condition":{"and":{"vals":[{"not":{"val":{"dotIsActive":{"spellId":{"spellId":48468}}}}},{"cmp":{"op":"OpGt","lhs":{"auraRemainingTime":{"auraId":{"spellId":48518}}},"rhs":{"const":{"val":"11s"}}}},{"auraIsActiveWithReactionTime":{"auraId":{"spellId":48518}}}]}},"castSpell":{"spellId":{"spellId":48468}}}},
{"action":{"condition":{"and":{"vals":[{"not":{"val":{"dotIsActive":{"spellId":{"spellId":48468}}}}},{"cmp":{"op":"OpGt","lhs":{"auraRemainingTime":{"auraId":{"spellId":48517}}},"rhs":{"const":{"val":"2s"}}}},{"auraIsActiveWithReactionTime":{"auraId":{"spellId":48517}}}]}},"castSpell":{"spellId":{"spellId":48468}}}},
{"action":{"condition":{"and":{"vals":[{"auraIcdIsReadyWithReactionTime":{"auraId":{"spellId":48518}}},{"cmp":{"op":"OpLe","lhs":{"auraRemainingTime":{"auraId":{"spellId":48517}}},"rhs":{"const":{"val":"0s"}}}},{"not":{"val":{"dotIsActive":{"spellId":{"spellId":48463}}}}},{"auraIsActive":{"auraId":{"spellId":16886}}}]}},"castSpell":{"spellId":{"spellId":48463}}}},
{"action":{"condition":{"and":{"vals":[{"auraIsActiveWithReactionTime":{"auraId":{"spellId":48518}}}]}},"castSpell":{"spellId":{"spellId":48465}}}},
{"action":{"condition":{"and":{"vals":[{"auraIsActiveWithReactionTime":{"auraId":{"spellId":48517}}}]}},"castSpell":{"spellId":{"spellId":48461}}}},
{"action":{"condition":{"and":{"vals":[{"not":{"val":{"dotIsActive":{"spellId":{"spellId":48468}}}}}]}},"castSpell":{"spellId":{"spellId":48468}}}},
{"action":{"condition":{"not":{"val":{"auraIcdIsReadyWithReactionTime":{"auraId":{"spellId":48518}}}}},"castSpell":{"spellId":{"spellId":48465}}}},
{"action":{"castSpell":{"spellId":{"spellId":48461}}}}
]
}
6 changes: 4 additions & 2 deletions ui/balance_druid/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ import P4HordeGear from './gear_sets/p4_horde.gear.json';
import P4AllianceGear from './gear_sets/p4_alliance.gear.json';

import BasicP3AplJson from './apls/basic_p3.apl.json';
import P4AplJson from './apls/p4.apl.json';
import P4FocusAplJson from './apls/p4_focus_glyph.apl.json';
import P4StarfireAplJson from './apls/p4_starfire_glyph.apl.json';

// Preset options for this spec.
// Eventually we will import these values for the raid sim too, so its good to
Expand All @@ -53,7 +54,8 @@ export const P4_PRESET_ALLI = PresetUtils.makePresetGear('P4 Preset [A]', P4Alli
export const P4_PRESET_HORDE = PresetUtils.makePresetGear('P4 Preset [H]', P4HordeGear, { faction: Faction.Horde });

export const ROTATION_PRESET_P3_APL = PresetUtils.makePresetAPLRotation('P3', BasicP3AplJson);
export const ROTATION_PRESET_P4_APL = PresetUtils.makePresetAPLRotation('P4', P4AplJson);
export const ROTATION_PRESET_P4_FOCUS_APL = PresetUtils.makePresetAPLRotation('P4 Focus Glyph', P4FocusAplJson);
export const ROTATION_PRESET_P4_STARFIRE_APL = PresetUtils.makePresetAPLRotation('P4 Starfire Glyph', P4StarfireAplJson);

// 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
3 changes: 2 additions & 1 deletion ui/balance_druid/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ export class BalanceDruidSimUI extends IndividualSimUI<Spec.SpecBalanceDruid> {
],
rotations: [
Presets.ROTATION_PRESET_P3_APL,
Presets.ROTATION_PRESET_P4_APL,
Presets.ROTATION_PRESET_P4_FOCUS_APL,
Presets.ROTATION_PRESET_P4_STARFIRE_APL,
],
// Preset gear configurations that the user can quickly select.
gear: [
Expand Down

0 comments on commit 25cd0a8

Please sign in to comment.