Quantcast

fix pet swap for demono warlock

Sidoine De Wispelaere [11-16-11 - 19:26]
fix pet swap for demono warlock

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@437 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.toc
defaut/Demoniste.lua
diff --git a/Ovale.toc b/Ovale.toc
index e8d0bb2..40eb3f0 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: 4.2.5
+## Version: 4.2.6
 ## OptionalDeps: Ace3, ButtonFacade, Recount, Skada, LibBabble-CreatureType-3.0, LibRangeCheck-2.0
 ## SavedVariables: OvaleDB
 ## SavedVariablesPerCharacter: OvaleDBPC
diff --git a/defaut/Demoniste.lua b/defaut/Demoniste.lua
index 63f56db..82fa195 100644
--- a/defaut/Demoniste.lua
+++ b/defaut/Demoniste.lua
@@ -241,7 +241,7 @@ AddIcon help=main mastery=2
 AddIcon help=cd mastery=2
 {
 	#/summon_felguard,if=cooldown.demon_soul.remains<5&cooldown.metamorphosis.remains<5&!pet.felguard.active
-	if {spell(DEMONSOUL)<5} and {spell(METAMORPHOSIS)<5} unless pet.CreatureFamily(Felguard) Spell(SUMMONFELGUARD)
+	if CheckBoxOn(petswap) and {spell(DEMONSOUL)<5} and {spell(METAMORPHOSIS)<5} unless pet.CreatureFamily(Felguard) Spell(SUMMONFELGUARD)
 	#/metamorphosis,if=pet.felguard.active
 	if pet.Present() and pet.CreatureFamily(Felguard) Spell(METAMORPHOSIS)
 	#/demon_soul,if=buff.metamorphosis.up