以盗贼一键宏为例,怎么将攻击目标的目标加入此循环。
/startattack
/script p=GetComboPoints();if (p>0 and not IsBuffActive(“毒伤”)) or (p>4 and GetPlayerBuffTimeLeft(GetPlayerAuraIndex(“毒伤”)) < 4) then CastSpellByName(“毒伤”) end;if (p>0 and not IsBuffActive(“切割”)) or (p>4 and GetPlayerBuffTimeLeft(GetPlayerAuraIndex(“切割”)) < 4) then CastSpellByName(“切割”) end;if (p>3 and not IsBuffActive(“血腥气息”)) or (p>4 and GetPlayerBuffTimeLeft(GetPlayerAuraIndex(“血腥气息”)) < 4) then CastSpellByName(“割裂”) end;if p>4 then CastSpellByName(“剔骨”) else CastSpellByName(“双刃毒袭”) end
求指导,谢谢!
/script if UnitIsFriend(“player”, “target”) then AssistUnit(“target”) end
加在开头
感谢,辛苦了