jp-ganis / JPS

Protected LUA DPS Addon
32 stars 46 forks source link

Need simple dispel+cc on paladin rotation #436

Open shikulja opened 9 years ago

shikulja commented 9 years ago

Since the rotation function Dispel paladin found. Please help find the normal operating function. in itself or not, a script looks very bad. It is necessary to spell: Cleanse http://ru.wowhead.com/spell=4987

Emancipate http://ru.wowhead.com/spell=121783

my scipt:

(working bad. use on not working debaff, many times and down mana) local dispelTable = {"Очищение"} -- Cleanse function hpala.dispel() local cleanseTarget = nil -- jps.FindMeDispelTarget({"Poison"},{"Magic"},{"Disease"}) if jps.DispelMagicTarget() then cleanseTarget = jps.DispelMagicTarget() elseif jps.DispelPoisonTarget() then cleanseTarget = jps.DispelPoisonTarget() elseif jps.DispelDiseaseTarget() then cleanseTarget = jps.DispelDiseaseTarget() elseif jps.DispelFriendlyTarget() then cleanseTarget = jps.DispelFriendlyTarget() end dispelTable[2] = cleanseTarget ~= nil and jps.dispelActive() dispelTable[3] = cleanseTarget return dispelTable end -- Dispels hpala.dispel

(not working) need normal CC dispel code "Emancipate" { "Освобождение" , jps.debuff("Ледяная ловушка", "Хватка земли" , "Ледяной заслон", "Кольцо льда", "Чуть не попался!", player) , player },


most of the problems of the lack of documentation, with examples. Most of the functions have to search manually in Lua. Follow-up \ Offer - since Pandaria still relevant on private servers. maybe it's worth to separate into two branches, so as not to be confused and not to look for the required version, and change the version to which you want