- heroic strike should not be displayed in berserker stance if execute is available
Sidoine De Wispelaere [05-01-09 - 09:28]
- heroic strike should not be displayed in berserker stance if execute is available
- bug fix: talents where not reseted when changing spec with dual spec
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@49 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/Ovale.lua b/Ovale.lua
index c2f7e83..32079a9 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -203,6 +203,10 @@ function Ovale:CHARACTER_POINTS_CHANGED()
self:RemplirListeTalents()
end
+function Ovale:PLAYER_TALENT_UPDATE()
+ self:RemplirListeTalents()
+end
+
function Ovale:SPELLS_CHANGED()
self:RemplirListeSorts();
self:RemplirListeFormes()
@@ -362,6 +366,7 @@ function Ovale:OnEnable()
self:RegisterEvent("PLAYER_REGEN_ENABLED");
self:RegisterEvent("PLAYER_REGEN_DISABLED");
self:RegisterEvent("SPELLS_CHANGED")
+ self:RegisterEvent("PLAYER_TALENT_UPDATE")
self:RegisterEvent("CHARACTER_POINTS_CHANGED")
self:RegisterEvent("ACTIONBAR_SLOT_CHANGED");
self:RegisterEvent("UPDATE_BINDINGS");
@@ -387,6 +392,7 @@ function Ovale:OnDisable()
-- Called when the addon is disabled
self:UnregisterEvent("PLAYER_REGEN_ENABLED")
self:UnregisterEvent("PLAYER_REGEN_DISABLED")
+ self:UnregisterEvent("PLAYER_TALENT_UPDATE")
self:UnregisterEvent("ACTIONBAR_SLOT_CHANGED")
self:UnregisterEvent("SPELLS_CHANGED")
self:UnregisterEvent("CHARACTER_POINTS_CHANGED")
diff --git a/defaut/Guerrier.lua b/defaut/Guerrier.lua
index 4f047f1..2c84a19 100644
--- a/defaut/Guerrier.lua
+++ b/defaut/Guerrier.lua
@@ -126,17 +126,22 @@ AddIcon
AddIcon
{
- unless Stance(1)
+ if CheckBoxOff(multi)
{
- if Mana(more 66)
- {
- if CheckBoxOn(multi)
- Spell(CLEAVE doNotRepeat=1)
- if CheckBoxOff(multi)
- Spell(HEROICSTRIKE doNotRepeat=1)
- }
- }
-}
+ if Stance(2)
+ {
+ if Mana(more 66)
+ Spell(HEROICSTRIKE doNotRepeat=1)
+ }
+ if Stance(3)
+ {
+ if Mana(more 66) and TargetLifePercent(more 20)
+ Spell(HEROICSTRIKE doNotRepeat=1)
+ }
+ }
+ if Mana(more 50) and CheckBoxOn(multi)
+ Spell(CLEAVE doNotRepeat=1)
+ }
AddIcon
{