Quantcast

- compilation errors should print

Sidoine De Wispelaere [04-18-09 - 13:00]
- compilation errors should print

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@28 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCompile.lua
defaut/Mage.lua
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index ccbd63e..4a50791 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -123,14 +123,14 @@ local function ParseAddIcon(params, text)
 		masterNode = string.match(text, "node(%d+)")
 	end
 	if (not masterNode) then
-		self:Print("no master node")
+		Ovale:Print("no master node")
 		return nil
 	end

 	-- Si il reste autre chose que des espaces, c'est une erreur de syntaxe
 	text = string.gsub(text, "node%d+", "", 1)
 	if (string.match(text,"[^ ]")) then
-		self:Print("syntax error:"..text)
+		Ovale:Print("syntax error:"..text)
 		return nil
 	end

diff --git a/defaut/Mage.lua b/defaut/Mage.lua
index 6331e95..e2c7333 100644
--- a/defaut/Mage.lua
+++ b/defaut/Mage.lua
@@ -28,44 +28,44 @@ AddCheckBox(scorch SpellName(SCORCH))

 AddIcon
 {
-	if TalentPoints(TALENTLIVINGBOMB more 0)
-	{
-		#Fire spec
-		if BuffPresent(HOTSTREAK) Spell(PYROBLAST)
-		if TargetDebuffExpires(LIVINGBOMB 0 mine=1) Spell(LIVINGBOMB)
-		if TargetDebuffExpires(IMPROVEDSCORCH 2 stacks=5) and CheckBoxOn(scorch) Spell(SCORCH)
-		if TalentPoints(TALENTPIERCINGICE more 0)
-			Spell(FROSTFIREBOLT)
-		if TalentPoints(TALENTPIERCINGICE less 1)
-			Spell(FIREBALL)
-	}
-
-	if TalentPoints(TALENTCHILLEDTOTHEBONES more 0)
-	{
-		#Frost spec
-		Spell(SUMMONWATERELEMENTAL)
-		Spell(FROSTBOLT)
-	}
-
-	if TalentPoints(TALENTARCANEBARRAGE more 0)
-	{
-		#Arcane spec
-		unless BuffPresent(ARCANEBLAST stacks=3) or {BuffPresent(ARCANEBLAST stacks=2) and Casting(ARCANEBLAST)}
-			Spell(ARCANEBLAST)
-		Spell(ARCANEMISSILES)
-	}
+       if TalentPoints(TALENTLIVINGBOMB more 0)
+       {
+              #Fire spec
+              if BuffPresent(HOTSTREAK) Spell(PYROBLAST)
+              if TargetDebuffExpires(LIVINGBOMB 0 mine=1) Spell(LIVINGBOMB)
+              if TargetDebuffExpires(IMPROVEDSCORCH 2 stacks=5) and CheckBoxOn(scorch) Spell(SCORCH)
+              if TalentPoints(TALENTPIERCINGICE more 0)
+                     Spell(FROSTFIREBOLT)
+              if TalentPoints(TALENTPIERCINGICE less 1)
+                     Spell(FIREBALL)
+       }
+
+       if TalentPoints(TALENTCHILLEDTOTHEBONES more 0)
+       {
+              #Frost spec
+              Spell(SUMMONWATERELEMENTAL)
+              Spell(FROSTBOLT)
+       }
+
+       if TalentPoints(TALENTARCANEBARRAGE more 0)
+       {
+              #Arcane spec
+              unless BuffPresent(ARCANEBLAST stacks=3) or {BuffPresent(ARCANEBLAST stacks=2) and Casting(ARCANEBLAST)}
+                     Spell(ARCANEBLAST)
+              Spell(ARCANEMISSILES)
+       }
 }

 AddIcon
 {
-	Spell(MIRRORIMAGE)
+       Spell(MIRRORIMAGE)
 }

 AddIcon
 {
-	Spell(COMBUSTION)
-	Spell(ICYVEINS)
-	Spell(PRESENCEOFMIND)
+       Spell(COMBUSTION)
+       Spell(ICYVEINS)
+       Spell(PRESENCEOFMIND)
 }

 ]]
\ No newline at end of file