a couple of changes MW Monk
bug fixes and own additions:
Code:
--BlackoutKick
if Nova_DPSCheck then
if UnitAffectingCombat("player")
and members[1].HP > Nova_DPS
--and lowhpmembers < 3
--and PQR_UnitFacing("player", "target") --Elegon not work
and not UnitBuffID("player",101546) --Spinning Crane Kick
and not (UnitChannelInfo("player") == GetSpellInfo(131523)) --Zen Meditation
and not (UnitChannelInfo("player") == GetSpellInfo(117952)) --Crackling Jade Lightning
and UnitExists("target")
and PQR_SpellAvailable(100784)
and IsUsableSpell(100784)
and not PQR_IsOutOfSight("target")
and not UnitIsDeadOrGhost("target")
and IsSpellInRange(GetSpellInfo(100784),"target") == 1
--and select(3, Nova_UnitInfo("player")) >= 50 --Mana
and UnitCanAttack("player", "target") then
--and UnitBuffID("player", 115867) then --Mana Tea
--if select(4, UnitBuffID("player", 115867)) >= 2 --Mana Tea
if select(5, Nova_UnitInfo("player")) >= 2 then --Chi
if not UnitBuffID("player",127722) then --Serpent's Zeal
CastSpellByName(tostring(GetSpellInfo(100784)),"target")
return true
else
if select(4, UnitBuffID("player",127722)) < 2 --Serpent's Zeal
or (select(7, UnitBuffID("player", 127722)) - GetTime()) <= 5 then --Serpent's Zeal Timer
--or UnitBuffID("player",120273)) --Tiger Strikes
CastSpellByName(tostring(GetSpellInfo(100784)),"target")
--PQR_WriteToChat("\124cFFFF55FF BlackoutKick")
return true
end
end
end
end
end
Code:
--TigerPalm
if Nova_DPSCheck then
if UnitAffectingCombat("player")
and members[1].HP > Nova_DPS --Nova_DPS
--and lowhpmembers < 3
and select(5, Nova_UnitInfo("player")) >= 1
and not UnitBuffID("player",101546) --Spinning Crane Kick
and not (UnitChannelInfo("player") == GetSpellInfo(131523)) --Zen Meditation
and not (UnitChannelInfo("player") == GetSpellInfo(117952)) --Crackling Jade Lightning
and UnitExists("target")
and PQR_SpellAvailable(100787)
and IsUsableSpell(100787)
and not PQR_IsOutOfSight("target")
and not UnitIsDeadOrGhost("target")
--and PQR_UnitFacing("player", "target") --Elegon not work
--and not Nova_Moving
--and select(3, Nova_UnitInfo("player")) >= 50 --Mana
and IsSpellInRange(GetSpellInfo(100787),"target") == 1
and UnitCanAttack("player", "target") then
if not UnitBuffID("player",125359) then --Tiger Power
--CastSpellByName(tostring(GetSpellInfo(100787)),"target")
--PQR_WriteToChat("\124cFFFF55FF TigerPalm")
CastSpellByName(tostring(GetSpellInfo(100787)),"target")
return true
end
if not UnitBuffID("player",118674) then --Vital Mists buff Blackout Kick/Surging Mist/Spinning Crane Kick
CastSpellByName(tostring(GetSpellInfo(100787)),"target")
return true
else
if select(4, UnitBuffID("player",118674)) < 5 --Vital Mists
or (select(7, UnitBuffID("player", 125359)) - GetTime()) <= 5 then --Tiger Power Timer
CastSpellByName(tostring(GetSpellInfo(100787)),"target")
return true
end
end
end
end
Code:
--EnvelopingMist
if Nova_EnvelopingMistCheck then
if members[1].HP < Nova_EnvelopingMist and select(3, Nova_UnitInfo("player")) > (Nova_LowMana-5) then --Nova_EnvelopingMist + me
if PQR_SpellAvailable(124682)
and UnitAffectingCombat("player")
and not UnitBuffID("player",101546) --Spinning Crane Kick
and not (UnitChannelInfo("player") == GetSpellInfo(131523)) --Zen Meditation
and not (UnitChannelInfo("player") == GetSpellInfo(117952)) --Crackling Jade Lightning
and IsSpellInRange(GetSpellInfo(124682),members[1].Unit) == 1
and CanHeal2(members[1].Unit)
and (UnitChannelInfo("player") == GetSpellInfo(115175)) --Soothing Mist
and IsUsableSpell(124682) then
if UnitBuffID(members[1].Unit,115175,"player") --Soothing Mist
and not UnitBuffID(members[1].Unit,124682,"player") --Enveloping Mist
then
if select(5, Nova_UnitInfo("player")) >= 3 then
PQR_CustomTarget = members[1].Unit
--PQR_WriteToChat("\124cFFFF55FFCast EM - HP: " ..members[1].HP)
CastSpellByName(tostring(GetSpellInfo(124682)),members[1].Unit)
return true
elseif select(5, Nova_UnitInfo("player")) == 0
and select(2,GetTalentRowSelectionInfo(3)) == 9 then
CastSpellByName(tostring(GetSpellInfo(115399)))
--PQR_WriteToChat("\124cFFFF55FFCast Chi Brew then EM - HP: " ..members[1].HP)
PQR_CustomTarget = members[1].Unit
CastSpellByName(tostring(GetSpellInfo(124682)),members[1].Unit)
return true
end
end
end
end
end
Code:
if Nova_UpliftCheck then
if PQR_SpellAvailable(115151)
and PQR_SpellAvailable(116670)
and IsUsableSpell(116670)
and not UnitBuffID("player",101546) --Spinning Crane Kick
and not (UnitChannelInfo("player") == GetSpellInfo(131523)) --Zen Meditation
and not (UnitChannelInfo("player") == GetSpellInfo(117952)) --Crackling Jade Lightning
and UnitAffectingCombat("player") then
local upliftcount=0
for i=1, #members do
if UnitBuffID(members[i].Unit,115151,"player")
then
upliftcount = upliftcount + 1
end
end
if (upliftcount >= Nova_UpliftCount --Nova_UpliftCount
and select(5, Nova_UnitInfo("player")) >= 2)
or (select(5, Nova_UnitInfo("player")) >= 4
and upliftcount >= (Nova_UpliftCount-1)) --Nova_UpliftCount-1
and AverageHealth(4) < Nova_Uplift
and select(2, AverageHealth(4)) >= Nova_UpliftLimit then --Nova_UpliftLimit
if PQR_SpellAvailable(116680) --Thunder Focus Tea
and not UnitBuffID("player",116680) then
if select(2,GetSpellCooldown(116680)) < 2
and select(5, Nova_UnitInfo("player")) >= 3 then
CastSpellByName(tostring(GetSpellInfo(116680)))
--PQR_WriteToChat("\124cFFFF55FFCast Thunder Focus Tea then Uplift - UpliftCount: " ..upliftcount)
end
--PQR_WriteToChat("\124cFFFF55FFCast Uplift - UpliftCount: " ..upliftcount)
CastSpellByName(tostring(GetSpellInfo(116670)))
return true
elseif select(5, Nova_UnitInfo("player")) >= 2 then
CastSpellByName(tostring(GetSpellInfo(116670)))
--PQR_WriteToChat("\124cFFFF55FFCast Uplift - UpliftCount: " ..upliftcount)
return true
end
end
end
end