不知道什么时候帮朋友写过这个宏,无意间翻出来就留下记录,没什么难点也没什么特点。。。
/script local ZFID=GetSpellIndex("责罚") if not UnitExists("target") or UnitIsDeadOrGhost("target") then TargetNearestEnemy() end if GetSpellCooldown(ZFID,"spell") then CastSpellByName("责罚",1) elseif not IsBuffActive("纯净火焰") then CastSpellByName("神圣之火") else CastSpellByName("惩击") end
好东西~~
通过CR大神的帮助,最新改进后的戒律一键DPS宏命令,必须使用超级宏:
/script P=function(m) DEFAULT_CHAT_FRAME:AddMessage(tostring(m))end;
/script MB=MyBuff;CS=CastSpellByName;G=GetSpellCooldown;L=GetSpellIndex;
/script H=UnitHealth("player")/UnitHealthMax("player");M=UnitMana("player")/UnitManaMax("player");
/script ZF=G(L("责罚"),"spell");XN=G(L("心灵专注"),"spell");TY=G(L("太阳之井的恩典"),"spell");KM=G(L("奎尔多雷冥想"),"spell");
/script if MB("灼热之光") then P("灼热之光");CS("惩击")end;
/script if KM==0 and M<0.9 then P("蓝少");CS("奎尔多雷冥想",1) end;
/script if not MB("启发") then P("无启发");CS("启发",1) end;
/script if not MB("心灵之火") then P("无心灵之火");CS("心灵之火",1)end;
/script if XN==0 then P("无心灵专注");CS("心灵专注",1)end;
/script if TY==0 then P("无太阳之井的恩典");CS("太阳之井的恩典",1)end;
/script if ZF==0 and H<0.8 then P("血少");CS("治疗术", 1) end; /script if ZF==0 and H>0.8 then P("血多");CS("责罚", 1) end;
/script if not MB("纯净火焰") then P("无纯净火焰");CS("神圣之火")end;CS("神圣之火");



