Skip to content

Commit

Permalink
Small tweaks to hunter rotation presets
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Jul 11, 2023
1 parent 80e19f1 commit 30cb5be
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 3 deletions.
75 changes: 72 additions & 3 deletions ui/hunter/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ export const ROTATION_PRESET_BM = {
"castSpell": {"spellId":{"spellId":49048}}
}
},
{
"hide": true,
"action": {
"castSpell": {"spellId":{"spellId":49045}}
}
},
{
"action": {
"castSpell": {"spellId":{"spellId":49052}}
Expand All @@ -177,7 +183,7 @@ export const ROTATION_PRESET_BM = {
]
}`),
}),
}
};

export const ROTATION_PRESET_MM = {
name: 'MM',
Expand Down Expand Up @@ -247,6 +253,12 @@ export const ROTATION_PRESET_MM = {
"castSpell": {"spellId":{"spellId":49048}}
}
},
{
"hide": true,
"action": {
"castSpell": {"spellId":{"spellId":49045}}
}
},
{
"action": {
"castSpell": {"spellId":{"spellId":49052}}
Expand All @@ -255,7 +267,7 @@ export const ROTATION_PRESET_MM = {
]
}`),
}),
}
};

export const ROTATION_PRESET_SV = {
name: 'SV',
Expand Down Expand Up @@ -345,7 +357,64 @@ export const ROTATION_PRESET_SV = {
]
}`),
}),
}
};

export const ROTATION_PRESET_AOE = {
name: 'AOE',
rotation: SavedRotation.create({
specRotationOptionsJson: HunterRotation.toJsonString(HunterRotation.create({
timeToTrapWeaveMs: 2000,
})),
rotation: APLRotation.fromJsonString(`{
"enabled": true,
"prepullActions": [
{
"action": {
"castSpell": {"spellId":{"otherId":"OtherActionPotion"}}
},
"doAt": "-1s"
}
],
"priorityList": [
{
"action": {
"condition": {"cmp":{"op":"OpGt","lhs":{"currentTime":{}},"rhs":{"const":{"val":"10s"}}}},
"autocastOtherCooldowns": {}
}
},
{
"action": {
"condition": {"and":{"vals":[{"not":{"val":{"auraIsActive":{"auraId":{"spellId":34074}}}}},{"cmp":{"op":"OpLt","lhs":{"currentManaPercent":{}},"rhs":{"const":{"val":"10%"}}}}]}},
"castSpell": {"spellId":{"spellId":34074}}
}
},
{
"action": {
"condition": {"and":{"vals":[{"not":{"val":{"auraIsActive":{"auraId":{"spellId":61847}}}}},{"cmp":{"op":"OpGt","lhs":{"currentManaPercent":{}},"rhs":{"const":{"val":"30%"}}}}]}},
"castSpell": {"spellId":{"spellId":61847}}
}
},
{
"hide": true,
"action": {
"multidot": {"spellId":{"spellId":49001},"maxDots":3,"maxOverlap":{"const":{"val":"0ms"}}}
}
},
{
"action": {
"condition": {"not":{"val":{"dotIsActive":{"spellId":{"spellId":49067}}}}},
"castSpell": {"spellId":{"tag":1,"spellId":49067}}
}
},
{
"action": {
"castSpell": {"spellId":{"spellId":58434}}
}
}
]
}`),
}),
};

export const DefaultOptions = HunterOptions.create({
ammo: Ammo.SaroniteRazorheads,
Expand Down
1 change: 1 addition & 0 deletions ui/hunter/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export class HunterSimUI extends IndividualSimUI<Spec.SpecHunter> {
Presets.ROTATION_PRESET_BM,
Presets.ROTATION_PRESET_MM,
Presets.ROTATION_PRESET_SV,
Presets.ROTATION_PRESET_AOE,
],
// Preset gear configurations that the user can quickly select.
gear: [
Expand Down

0 comments on commit 30cb5be

Please sign in to comment.