|
发表于 2015-9-15 20:04:00
|
显示全部楼层
可以使用代码,丁丁教我的方法
--愤怒的施法时间
local WCT = (select(4,GetSpellInfo("愤怒"))/1000);
--星火术的施法时间
local SCT = (select(4,GetSpellInfo("星火术"))/1000);
--日月能量向右
local goright = amIsEclipseDirection("player")
--日月能量向左
local goleft = not amIsEclipseDirection("player")
--日月能数值
local cp = UnitPower("player","8")
--日月蚀距离转换的剩余时间(不分方向)
if amTalentInfo("沉醉")
then ect = math.abs(UnitPower("player","8")/25)
elseif not amTalentInfo("沉醉")
then ect = math.abs(UnitPower("player","8")/12.5)
end
--愤怒/星火的左右推
if (cp<0 and ect<SCT and goright)
or (cp>0 and goleft and ect>WCT)
or (cp>=0 and goright)
then amrun("愤怒")
elseif
(cp>0 and goleft and ect<WCT)
or (cp<0 and goright and ect>SCT)
or (cp<=0 and goleft)
then amrun("星火术")end
同时参照这两个帖子http://www.luacn.net/thread-6329-1-1.html
http://www.luacn.net/thread-6244-1-1.html |
|