Skip to content

Commit

Permalink
fix: special trinket conditions (#822)
Browse files Browse the repository at this point in the history
bottled_flayedwing_toxin only usable when buff not present
grim_codex only usable with a valid enemy target
only use mistcaller_ocarina when not buffed and not in combat
  • Loading branch information
Hemario authored Jan 22, 2021
1 parent 2f3a28f commit 3053b58
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/scripts/ovale_common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@ ItemInfo(184841 proc=348136 cd=90)
ItemInfo(184842 proc=348139 cd=90)
`;
// END

code += `
Define(bottled_flayedwing_toxin 178742)
ItemRequire(bottled_flayedwing_toxin unusable set=1 enabled=(player.BuffPresent(bottled_flayedwing_toxin_buff)))
Define(bottled_flayedwing_toxin_buff 345545)
Define(grim_codex 178811)
ItemRequire(grim_codex unusable set=1 enabled=(target.isfriend()))
Define(mistcaller_ocarina 178715)
ItemRequire(mistcaller_ocarina unusable set=1 enabled=(InCombat() or player.BuffPresent(mistcaller_ocarina_buff)))
Define(mistcaller_ocarina_crit_buff 332299)
Define(mistcaller_ocarina_haste_buff 332300)
Define(mistcaller_ocarina_mastery_buff 332301)
Define(mistcaller_ocarina_vers_buff 330067)
SpellList(mistcaller_ocarina_buff mistcaller_ocarina_crit_buff mistcaller_ocarina_haste_buff mistcaller_ocarina_mastery_buff mistcaller_ocarina_vers_buff)
`;
scripts.registerScript(undefined, undefined, name, desc, code, "include");
}

0 comments on commit 3053b58

Please sign in to comment.