Skip to content

Commit

Permalink
fix(hunter): add conditions on kill_shot and harpoon
Browse files Browse the repository at this point in the history
Fixes #699
  • Loading branch information
Sidoine committed Dec 9, 2020
1 parent f704bd0 commit f7140b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/scripts/ovale_hunter_spells.ts
Expand Up @@ -4,7 +4,7 @@ export function registerHunterSpells(OvaleScripts: OvaleScriptsClass) {
const name = "ovale_hunter_spells";
const desc = "[9.0] Ovale: Hunter spells";
// THIS PART OF THIS FILE IS AUTOMATICALLY GENERATED
// ANY CHANGES MADE BELOW THIS POINT WILL BE LOST
// ANY CHANGES MADE BELOW THIS POINT WILL BE LOST
let code = `Define(a_murder_of_crows 131894)
# Summons a flock of crows to attack your target, dealing 131900s1*16 Physical damage over 15 seconds. If the target dies while under attack, A Murder of Crows' cooldown is reset.
SpellInfo(a_murder_of_crows focus=30 cd=60 duration=15 tick=1)
Expand Down Expand Up @@ -447,7 +447,12 @@ Define(essence_of_the_focusing_iris_essence_id 5)
Define(vision_of_perfection_essence_id 22)
Define(memory_of_lucid_dreams_essence_id 27)
`;
// END
// END
code += `
SpellRequire(kill_shot unusable set=1 enabled=(target.healthpercent() > 20))
SpellRequire(harpoon unusable set=1 enabled=(target.distance() < 8))
`;

OvaleScripts.RegisterScript(
"HUNTER",
undefined,
Expand Down

0 comments on commit f7140b6

Please sign in to comment.