From 09767d5b1a5b87f1231136e22072150007ef9d2b Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sat, 16 Jan 2010 13:50:32 +0000 Subject: [PATCH] added horn of winter as an option (not tested) git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@201 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Ovale.toc | 2 +- defaut/Chevalier.lua | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Ovale.toc b/Ovale.toc index 830b99c..3472bd0 100644 --- a/Ovale.toc +++ b/Ovale.toc @@ -3,7 +3,7 @@ ## Notes: Show the icon of the next spell to cast ## Notes-frFR: Affiche l'icône du prochain sort à lancer ## Author: Sidoine -## Version: 3.3.15 +## Version: 3.3.16 ## OptionalDeps: Ace3, ButtonFacade, Recount, LibBabble-CreatureType-3.0 ## SavedVariables: OvaleDB ## SavedVariablesPerCharacter: OvaleDBPC diff --git a/defaut/Chevalier.lua b/defaut/Chevalier.lua index 77b22e9..e28d11a 100644 --- a/defaut/Chevalier.lua +++ b/defaut/Chevalier.lua @@ -35,6 +35,7 @@ Define(RAISEDEAD 46584) Define(HORNOFWINTER 57330) AddCheckBox(rolldes SpellName(GLYPHDISEASE) default glyph=GLYPHDISEASE) +AddCheckBox(horn SpellName(HORNOFWINTER) default) SpellAddTargetDebuff(ICYTOUCH FROSTFEVER=15) SpellAddTargetDebuff(PLAGUESTRIKE BLOODPLAGUE=15) @@ -54,7 +55,7 @@ AddIcon help=main { Spell(DANCINGRUNEWEAPON usable=1) - if BuffExpires(HORNOFWINTER 2) Spell(HORNOFWINTER) + if CheckBoxOn(horn) and BuffExpires(HORNOFWINTER 2) Spell(HORNOFWINTER) if CheckBoxOn(rolldes) and Glyph(GLYPHDISEASE) and TargetDebuffPresent(FROSTFEVER mine=1) and TargetDebuffPresent(BLOODPLAGUE mine=1) and @@ -99,12 +100,15 @@ AddIcon help=main if TargetDebuffExpires(BLOODPLAGUE 0 mine=1) and Runes(unholy 1) Spell(PLAGUESTRIKE) + if BuffPresent(FROSTPRESENCE) Spell(RUNESTRIKE usable=1) Spell(FROSTSTRIKE usable=1) if PetPresent(no) Spell(RAISEDEAD) - Spell(DEATHCOIL usable=1) + + if Mana(more 39) Spell(DEATHCOIL usable=1) + Spell(HORNOFWINTER priority=2) } AddIcon help=aoe -- 1.7.9.5