Quantcast

Mage: More fixes after SimulationCraft import.

Johnny C. Lam [03-17-13 - 08:05]
Mage: More fixes after SimulationCraft import.

* Arcane Brilliance is one of several spell_power_multiplier and
  critical_strike buffs.

* Check that the required mage armor isn't present before suggesting it be
  applied for each specialization.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@790 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
defaut/Mage.lua
diff --git a/defaut/Mage.lua b/defaut/Mage.lua
index 5b7681c..0090a23 100644
--- a/defaut/Mage.lua
+++ b/defaut/Mage.lua
@@ -99,8 +99,8 @@ AddIcon mastery=1 help=main
 {
 	if not InCombat()
 	{
-		if BuffExpires(arcane_brilliance) Spell(arcane_brilliance)
-		Spell(mage_armor)
+		if BuffExpires(spell_power_multiplier any=1) or BuffExpires(critical_strike any=1) Spell(arcane_brilliance)
+		if BuffExpires(mage_armor) Spell(mage_armor)
 		Spell(rune_of_power)
 	}
 	if ItemCharges(36799) <3 and False() Spell(conjure_mana_gem)
@@ -144,8 +144,8 @@ AddIcon mastery=2 help=main
 {
 	if not InCombat()
 	{
-		if BuffExpires(arcane_brilliance) Spell(arcane_brilliance)
-		Spell(molten_armor)
+		if BuffExpires(spell_power_multiplier any=1) or BuffExpires(critical_strike any=1) Spell(arcane_brilliance)
+		if BuffExpires(molten_armor) Spell(molten_armor)
 		Spell(rune_of_power)
 	}
 	if ItemCharges(36799) <3 and False() Spell(conjure_mana_gem)
@@ -185,7 +185,7 @@ AddIcon mastery=3 help=main
 {
 	if not InCombat()
 	{
-		if BuffExpires(arcane_brilliance) Spell(arcane_brilliance)
+		if BuffExpires(spell_power_multiplier any=1) or BuffExpires(critical_strike any=1) Spell(arcane_brilliance)
 		if BuffExpires(frost_armor) Spell(frost_armor)
 		Spell(rune_of_power)
 	}