Skip to content

Commit

Permalink
add stacking preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamrch committed Oct 22, 2024
1 parent f2aa238 commit db80e87
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 3 deletions.
18 changes: 18 additions & 0 deletions ui/retribution_paladin/apls/p5ret-stacking-6CF2DR.apl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "TypeAPL",
"prepullActions": [
{"action":{"castSpell":{"spellId":{"spellId":20920,"rank":5}}},"doAtValue":{"const":{"val":"-3s"}}},
{"action":{"castSpell":{"spellId":{"spellId":407798}}},"doAtValue":{"const":{"val":"-1.5s"}}}
],
"priorityList": [
{"action":{"autocastOtherCooldowns":{}}},
{"action":{"condition":{"and":{"vals":[{"cmp":{"op":"OpLe","lhs":{"auraRemainingTime":{"auraId":{"spellId":20920,"rank":5}}},"rhs":{"const":{"val":"0.5s"}}}},{"cmp":{"op":"OpLe","lhs":{"autoTimeToNext":{"autoType":"Any"}},"rhs":{"const":{"val":"1.5s"}}}}]}},"castSpell":{"spellId":{"spellId":20920,"rank":5}}}},
{"action":{"condition":{"and":{"vals":[{"cmp":{"op":"OpLe","lhs":{"auraRemainingTime":{"auraId":{"spellId":407798}}},"rhs":{"const":{"val":"0.5s"}}}},{"cmp":{"op":"OpLe","lhs":{"autoTimeToNext":{"autoType":"Any"}},"rhs":{"const":{"val":"1.5s"}}}}]}},"castSpell":{"spellId":{"spellId":407798}}}},
{"action":{"condition":{"and":{"vals":[{"spellCanCast":{"spellId":{"spellId":20271}}},{"auraIsActive":{"auraId":{"spellId":407798}}},{"auraIsActive":{"auraId":{"spellId":20920,"rank":5}}}]}},"castSpell":{"spellId":{"spellId":20271}}}},
{"action":{"condition":{"runeIsEquipped":{"runeId":{"spellId":429152}}},"castSpell":{"spellId":{"spellId":24239,"rank":3}}}},
{"action":{"castSpell":{"spellId":{"spellId":407778}}}},
{"action":{"castSpell":{"spellId":{"spellId":407676}}}},
{"action":{"castSpell":{"spellId":{"spellId":415073}}}},
{"action":{"castSpell":{"spellId":{"spellId":20924,"rank":5}}}}
]
}
21 changes: 21 additions & 0 deletions ui/retribution_paladin/gear_sets/p5stacking.gear.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"items": [
{"id":232147,"enchant":2543,"rune":429139},
{"id":231902},
{"id":232145,"enchant":2606},
{"id":230842,"enchant":849,"rune":440672},
{"id":232150,"enchant":1891,"rune":407778},
{"id":231174,"enchant":1885,"rune":429144},
{"id":231179,"enchant":931,"rune":407676},
{"id":232144,"rune":426158},
{"id":232146,"enchant":2543,"rune":407624},
{"id":232149,"enchant":1887,"rune":426157},
{"id":228261,"rune":442898},
{"id":230734,"rune":442876},
{"id":230272},
{"id":228722},
{"id":230242,"enchant":1900},
{},
{"id":221457}
]
}
21 changes: 21 additions & 0 deletions ui/retribution_paladin/gear_sets/p5twistingSlower.gear.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"items": [
{"id":231178,"enchant":7619,"rune":429139},
{"id":231902},
{"id":231176,"enchant":2606},
{"id":230842,"enchant":849,"rune":440672},
{"id":231181,"enchant":1891,"rune":407778},
{"id":231174,"enchant":1885,"rune":429152},
{"id":230861,"enchant":931,"rune":407676},
{"id":231175,"rune":426158},
{"id":231177,"enchant":7619,"rune":407624},
{"id":230741,"enchant":1887,"rune":426157},
{"id":228261,"rune":442898},
{"id":230734,"rune":442876},
{"id":231779},
{"id":228722},
{"id":230271,"enchant":1900},
{},
{"id":232389}
]
}
21 changes: 18 additions & 3 deletions ui/retribution_paladin/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import APLPP5ExodinJson from './apls/p5ret-exodin-6CF2DR.apl.json';
import APLPP5TwistingSlowJson from './apls/p5ret-twist-4DR-3.5-3.6.apl.json';
import APLPP5TwistingSlowerJson from './apls/p5ret-twist-4DR-3.7-4.0.apl.json';
import APLPP5TwistingCancelAuraJson from './apls/p5ret-twist-4DR-CancelAura.apl.json';
import APLPP5StackingJson from './apls/p5ret-stacking-6CF2DR.apl.json';
import APLPP5ShockadinJson from './apls/p5Shockadin.apl.json';
import Phase1RetGearJson from './gear_sets/p1ret.gear.json';
import Phase2RetSoCGearJson from './gear_sets/p2retsoc.gear.json';
Expand All @@ -47,6 +48,8 @@ import Phase4RetGearJson from './gear_sets/p4rettwist.gear.json';
import Phase5ExodinGearJson from './gear_sets/p5exodin.gear.json';
import Phase5ShockadinGearJson from './gear_sets/p5shockadin.gear.json';
import Phase5TwistingGearJson from './gear_sets/p5twisting.gear.json';
import Phase5TwistingSlowerGearJson from './gear_sets/p5twistingSlower.gear.json';
import Phase5StackingGearJson from './gear_sets/p5stacking.gear.json';
import Phase5TwistingHasteGearJson from './gear_sets/p5twistingHaste.gear.json';

// Preset options for this spec.
Expand Down Expand Up @@ -84,6 +87,12 @@ export const Phase4RetExodin6pT1Gear = PresetUtils.makePresetGear('P4 Ret Exodin
export const Phase5TwistingGear = PresetUtils.makePresetGear('P5 Twisting', Phase5TwistingGearJson, {
customCondition: player => player.getLevel() == 60,
});
export const Phase5TwistingSlowerGear = PresetUtils.makePresetGear('P5 Twisting Slower', Phase5TwistingSlowerGearJson, {
customCondition: player => player.getLevel() == 60,
});
export const Phase5StackingGear = PresetUtils.makePresetGear('P5 Stacking', Phase5StackingGearJson, {
customCondition: player => player.getLevel() == 60,
});
export const Phase5TwistingHasteGear = PresetUtils.makePresetGear('P5 Twisting Haste', Phase5TwistingHasteGearJson, {
customCondition: player => player.getLevel() == 60,
});
Expand All @@ -99,7 +108,7 @@ export const GearPresets = {
[Phase.Phase2]: [Phase2RetSoCGear, Phase2RetSoMGear],
[Phase.Phase3]: [Phase3RetSoMGear],
[Phase.Phase4]: [Phase4RetTwistGear, Phase4RetTwist6pT1Gear, Phase4RetExodinGear, Phase4RetExodin6pT1Gear],
[Phase.Phase5]: [Phase5TwistingGear, Phase5TwistingHasteGear, Phase5ExodinGear, Phase5ShockadinGear],
[Phase.Phase5]: [Phase5TwistingGear, Phase5TwistingSlowerGear, Phase5StackingGear, Phase5TwistingHasteGear, Phase5ExodinGear, Phase5ShockadinGear],
};

export const DefaultGear = GearPresets[Phase.Phase5][0];
Expand Down Expand Up @@ -138,6 +147,9 @@ export const APLPP5Twisting4DRSlower = PresetUtils.makePresetAPLRotation('P5 Twi
export const APLPP5Twisting4DRCancelAura = PresetUtils.makePresetAPLRotation('P5 Twist 4DR CancelAura', APLPP5TwistingCancelAuraJson, {
customCondition: player => player.getLevel() === 60,
});
export const APLPP5Stacking6CF2DR = PresetUtils.makePresetAPLRotation('P5 Twist 4DR CancelAura', APLPP5StackingJson, {
customCondition: player => player.getLevel() === 60,
});
export const APLPP5Exodin = PresetUtils.makePresetAPLRotation('P5 Exodin', APLPP5ExodinJson, {
customCondition: player => player.getLevel() === 60,
});
Expand All @@ -150,7 +162,7 @@ export const APLPresets = {
[Phase.Phase2]: [APLP2Ret],
[Phase.Phase3]: [APLP3Ret],
[Phase.Phase4]: [APLP4RetTwist, APLP4RetTwist6pT1, APLP4RetExodin, APLP4RetExodin6pT1],
[Phase.Phase5]: [APLPP5Twisting4DRCancelAura, APLPP5Twisting4DRSlow, APLPP5Twisting4DRSlower, APLPP5Exodin, APLPP5Shockadin],
[Phase.Phase5]: [APLPP5Twisting4DRCancelAura, APLPP5Stacking6CF2DR, APLPP5Twisting4DRSlow, APLPP5Twisting4DRSlower, APLPP5Exodin, APLPP5Shockadin],
};

export const DefaultAPLs: Record<number, PresetUtils.PresetRotation> = {
Expand Down Expand Up @@ -201,7 +213,8 @@ export const TalentPresets = {

export const PresetBuildTwistingCancelAura = PresetUtils.makePresetBuild('TwistingCancelAura', { gear: Phase5TwistingHasteGear, talents: P4RetTalents, rotation: APLPP5Twisting4DRCancelAura });
export const PresetBuildTwistingSlow = PresetUtils.makePresetBuild('TwistingSlow', { gear: Phase5TwistingGear, talents: P4RetTalents, rotation: APLPP5Twisting4DRSlow });
export const PresetBuildTwistingSlower = PresetUtils.makePresetBuild('TwistingSlower', { gear: Phase5TwistingHasteGear, talents: P4RetTalents, rotation: APLPP5Twisting4DRSlower });
export const PresetBuildTwistingSlower = PresetUtils.makePresetBuild('TwistingSlower', { gear: Phase5TwistingSlowerGear, talents: P4RetTalents, rotation: APLPP5Twisting4DRSlower });
export const PresetBuildSealStacking = PresetUtils.makePresetBuild('SealStacking', { gear: Phase5StackingGear, talents: P4RetTalents, rotation: APLPP5Stacking6CF2DR });
export const PresetBuildExodin = PresetUtils.makePresetBuild('Exodin', { gear: Phase5ExodinGear, talents: P4RetTalents, rotation: APLPP5Exodin });
export const PresetBuildShockadin = PresetUtils.makePresetBuild('Shockadin', { gear: Phase5ShockadinGear, talents: P5ShockadinTalents, rotation: APLPP5Shockadin });

Expand Down Expand Up @@ -260,6 +273,7 @@ export const DefaultRaidBuffs = RaidBuffs.create({
fireResistanceTotem: true,
giftOfTheWild: TristateEffect.TristateEffectImproved,
sanctityAura: true,
hornOfLordaeron: true,
leaderOfThePack: true,
demonicPact: 110,
aspectOfTheLion: true,
Expand All @@ -269,6 +283,7 @@ export const DefaultRaidBuffs = RaidBuffs.create({

export const DefaultDebuffs = Debuffs.create({
curseOfRecklessness: true,
exposeArmor: TristateEffect.TristateEffectImproved,
homunculi: 70, // 70% average uptime default
faerieFire: true,
giftOfArthas: true,
Expand Down
1 change: 1 addition & 0 deletions ui/retribution_paladin/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ const SPEC_CONFIG = registerSpecConfig(Spec.SpecRetributionPaladin, {
],
builds: [
Presets.PresetBuildTwistingCancelAura,
Presets.PresetBuildSealStacking,
Presets.PresetBuildTwistingSlow,
Presets.PresetBuildTwistingSlower,
Presets.PresetBuildExodin,
Expand Down

0 comments on commit db80e87

Please sign in to comment.