July 7, 201510 yr Hiya Droidz I wonder if there is a possibility to add something like this into rotation and if so how. If Prismatic Crystal detected within X yards attack Prismatic Crystal OR If Prysmatic Crystal detected within X yards from target attack Prismatic Crystal.
July 8, 201510 yr Hello, Try this code: Distance from you: (ObjectManager.GetWoWUnitByEntry(76933).Count(u => u.GetDistance < 30 && u.IsMyPet) > 0) Distance from target: (ObjectManager.Target.IsValid && ObjectManager.GetWoWUnitByEntry(76933).Count(u => u.Position.DistanceTo(ObjectManager.Target.Position) < 30 && u.IsMyPet) > 0) - Replace 30 by distance. - If this don't works try to remove code: && u.IsMyPet - I have found entry id of crystal (76933) in wowhead ( http://www.wowhead.com/npc=76933/prismatic-crystal ), if id is not correct you can found it with Dev tools (tab Tools). Use spell condition type "C Sharp Code" and put code in "Value".
Create an account or sign in to comment