Quantcast

Mage: Fix Evocation when using Invocation talent in Frost specialization.

Johnny C. Lam [05-11-14 - 08:10]
Mage: Fix Evocation when using Invocation talent in Frost specialization.

This fix causes the script to avoid suggesting Evocation until Invoker's
Energy is close to expiration if Icy Veins is on cooldown.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1423 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
scripts/ovale_mage.lua
diff --git a/scripts/ovale_mage.lua b/scripts/ovale_mage.lua
index 8616da4..eb32567 100644
--- a/scripts/ovale_mage.lua
+++ b/scripts/ovale_mage.lua
@@ -465,8 +465,8 @@ AddFunction FrostDefaultShortCdActions
 	#rune_of_power,if=cooldown.icy_veins.remains=0&buff.rune_of_power.remains<20
 	if TalentPoints(rune_of_power_talent) and IcyVeins() and RuneOfPowerRemains() < 20 Spell(rune_of_power)
 	#evocation,if=buff.invokers_energy.remains<cast_time&buff.alter_time.down
-	if TalentPoints(invocation_talent) and BuffRemains(invokers_energy_buff) < CastTime(rune_of_power) and BuffExpires(alter_time_buff) Spell(evocation)
-	#evocation,if=cooldown.icy_veins.remains=0&buff.rune_of_power.remains<20
+	if TalentPoints(invocation_talent) and BuffRemains(invokers_energy_buff) < CastTime(evocation) and BuffExpires(alter_time_buff) Spell(evocation)
+	#evocation,if=cooldown.icy_veins.remains=0&buff.invokers_energy.remains<20
 	if TalentPoints(invocation_talent) and IcyVeins() and BuffRemains(invokers_energy_buff) < 20 Spell(evocation)
 	#evocation,if=mana.pct<50,interrupt_if=mana.pct>95
 	if not TalentPoints(rune_of_power_talent) and not TalentPoints(invocation_talent) and ManaPercent() < 50 Spell(evocation)
@@ -482,7 +482,7 @@ AddFunction FrostDefaultCdActions

 	unless { TalentPoints(rune_of_power_talent) and RuneOfPowerRemains() < CastTime(rune_of_power) and BuffExpires(alter_time_buff) }
 		or { TalentPoints(rune_of_power_talent) and IcyVeins() and RuneOfPowerRemains() < 20 }
-		or { TalentPoints(invocation_talent) and BuffRemains(invokers_energy_buff) < CastTime(rune_of_power) and BuffExpires(alter_time_buff) }
+		or { TalentPoints(invocation_talent) and BuffRemains(invokers_energy_buff) < CastTime(evocation) and BuffExpires(alter_time_buff) }
 		or { TalentPoints(invocation_talent) and IcyVeins() and BuffRemains(invokers_energy_buff) < 20 }
 		or { not TalentPoints(rune_of_power_talent) and not TalentPoints(invocation_talent) and ManaPercent() < 50 and Spell(evocation) }
 	{