如何获知仇恨在自己身上还是在宝宝身上?
如何获知目标是不是玩家,仇恨在自己身上还是在宝宝身上?目标是玩家,一些和仇恨有关的技能就可以不使用了,宝宝的低吼也可以不放了
如果不是玩家,那就要注意仇恨。
或者目标的攻击目标如何得知呢? if UnitExists("target") and UnitExists("playertargettarget") and UnitIsUnit("playertargettarget", "player") then
-- 目标的目标是自己
elseif UnitExists("target") and UnitExists("playertargettarget") and UnitIsUnit("playertargettarget", "pet") then
-- 目标的目标是宠物
end "playertarget"指玩家的目标,而"playertargettarget"就是玩家的目标的目标了。再具体的说明可以看 [url]http://www.wowwiki.com/UnitId[/url] 太有用了,thanks
页:
[1]