Fix ticket #225 - Chat window error when click target with DK.
Johnny C. Lam [03-30-13 - 02:43]
Fix ticket #225 - Chat window error when click target with DK.
Change Death Knight script syntax to work around a parser bug with braces.
The parser doesn't correctly parse "a + b * {c / d}".
It parses it as "{a + b} * {c / d}".
The modified script does "a + {b * c / d}" to force the proper parse.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@871 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/defaut/Chevalier.lua b/defaut/Chevalier.lua
index e7e0e9e..a4bcade 100644
--- a/defaut/Chevalier.lua
+++ b/defaut/Chevalier.lua
@@ -97,7 +97,7 @@ AddIcon mastery=2 help=main
if BuffStacks(killing_machine) or RunicPower() >88 Spell(frost_strike)
if TalentPoints(plague_leech_talent) and {target.DebuffRemains(blood_plague) <3 or target.DebuffRemains(frost_fever) <3 or SpellCooldown(outbreak) <1 } Spell(plague_leech)
if target.DebuffRemains(frost_fever) <3 or target.DebuffRemains(blood_plague) <3 Spell(outbreak)
- if target.HealthPercent() -3 *{target.HealthPercent() /target.DeadIn() } <=35 Spell(soul_reaper)
+ if target.HealthPercent() -{3 *target.HealthPercent() /target.DeadIn() } <=35 Spell(soul_reaper)
if not target.DebuffPresent(frost_fever) Spell(howling_blast)
if not target.DebuffPresent(blood_plague) Spell(plague_strike)
if BuffStacks(rime) Spell(howling_blast)
@@ -120,8 +120,8 @@ AddIcon mastery=2 help=offgcd
}
Spell(pillar_of_frost)
if TalentPoints(blood_tap_talent) and BuffStacks(blood_charge) >10 and {RunicPower() >76 or {RunicPower() >=20 and BuffStacks(killing_machine) } } Spell(blood_tap)
- if TalentPoints(blood_tap_talent) and {target.HealthPercent() -3 *{target.HealthPercent() /target.DeadIn() } <=35 and SpellCooldown(soul_reaper) ==0 } Spell(blood_tap)
- if TalentPoints(blood_tap_talent) and {target.HealthPercent() -3 *{target.HealthPercent() /target.DeadIn() } >35 or BuffStacks(blood_charge) >=8 } Spell(blood_tap)
+ if TalentPoints(blood_tap_talent) and {target.HealthPercent() -{3 *target.HealthPercent() /target.DeadIn() } <=35 and SpellCooldown(soul_reaper) ==0 } Spell(blood_tap)
+ if TalentPoints(blood_tap_talent) and {target.HealthPercent() -{3 *target.HealthPercent() /target.DeadIn() } >35 or BuffStacks(blood_charge) >=8 } Spell(blood_tap)
}
AddIcon mastery=2 help=cd
{
@@ -148,7 +148,7 @@ AddIcon mastery=3 help=main
if AttackPower() >{LastSpellAttackPower(blood_plague) +5000 } and TimeInCombat() >15 and not {SpellCooldown(unholy_blight) >49 } Spell(outbreak)
if AttackPower() >{LastSpellAttackPower(blood_plague) +5000 } and TimeInCombat() >15 and not {SpellCooldown(unholy_blight) >49 } Spell(plague_strike)
if target.DebuffRemains(frost_fever) <3 or target.DebuffRemains(blood_plague) <3 Spell(outbreak)
- if target.HealthPercent() -3 *{target.HealthPercent() /target.DeadIn() } <=35 Spell(soul_reaper)
+ if target.HealthPercent() -{3 *target.HealthPercent() /target.DeadIn() } <=35 Spell(soul_reaper)
if not target.DebuffPresent(blood_plague) or not target.DebuffPresent(frost_fever) Spell(plague_strike)
Spell(dark_transformation)
if RunicPower() >90 Spell(death_coil)
@@ -166,7 +166,7 @@ AddIcon mastery=3 help=main
AddIcon mastery=3 help=offgcd
{
if TalentPoints(blood_tap_talent) and BuffStacks(blood_charge) >10 and RunicPower() >=32 Spell(blood_tap)
- if TalentPoints(blood_tap_talent) and {target.HealthPercent() -3 *{target.HealthPercent() /target.DeadIn() } <=35 and SpellCooldown(soul_reaper) ==0 } Spell(blood_tap)
+ if TalentPoints(blood_tap_talent) and {target.HealthPercent() -{3 *target.HealthPercent() /target.DeadIn() } <=35 and SpellCooldown(soul_reaper) ==0 } Spell(blood_tap)
if TalentPoints(blood_tap_talent) and BuffStacks(shadow_infusion) ==5 Spell(blood_tap)
if TalentPoints(blood_tap_talent) and RuneCount(unholy) ==2 and SpellCooldown(death_and_decay) ==0 Spell(blood_tap)
if TalentPoints(blood_tap_talent) and SpellCooldown(death_and_decay) ==0 Spell(blood_tap)