What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Hb有什么代码能判断敌人使用了一个瞬发技能?

6wind

New Member
Joined
Sep 6, 2014
Messages
16
最近在写CC代码的时候,想利用这句代码来查找附近使用了某技能的敌人
Code:
ObjectManager.GetObjectsOfTypeFast<WoWUnit>().Where(u => u.IsCasting && u.CastingSpellId == 123).OrderBy(u => u.Distance).FirstOrDefault();
结果是,这样只能查找到附近正在读条某技能的敌人,并不能找出用了某个瞬发技能的敌人

所以求助有没有能判断附近的单位用了某个瞬发技能,或者用了某个道具(如饰品)的语句?
 
无法判断使用的瞬发技能,除非那个瞬发技能是有buff或者debuff的,如果有你可以根据那个人身上的buff或者debuff来判断
 
Back
Top