void StealthHelper_OnStealth(StealthHelper.OnStealthEventArgs obj) { //Using First the Trinket then the vision ward. if (MenuExtensions.GetItemValue<bool>("dz191.vhr.misc.general.reveal")) { if (obj.IsStealthed && obj.Sender.IsValidTarget(600f)) { var objectPosition = obj.Sender.ServerPosition; if (Trinket.IsOwned() && Trinket.IsReady()) { var extend = ObjectManager.Player.ServerPosition.Extend(objectPosition, 400f); Trinket.Cast(extend); return; } if (Ward.IsOwned() && Ward.IsReady()) { var extend = ObjectManager.Player.ServerPosition.Extend(objectPosition, 400f); Ward.Cast(extend); } } } }
void StealthHelper_OnStealth(StealthHelper.OnStealthEventArgs obj) { //Using First the Trinket then the vision ward. if (MenuGenerator.miscMenu["dz191.vhr.misc.general.reveal"].Cast<CheckBox>().CurrentValue) { if (obj.IsStealthed && obj.Sender.IsEnemy && obj.Sender.ServerPosition.LSDistance(ObjectManager.Player.ServerPosition) <= 600f) { var objectPosition = obj.Sender.ServerPosition; if (Trinket.IsOwned() && Trinket.IsReady()) { var extend = ObjectManager.Player.ServerPosition.LSExtend(objectPosition, 400f); Trinket.Cast(extend); return; } if (Ward.IsOwned() && Ward.IsReady()) { var extend = ObjectManager.Player.ServerPosition.LSExtend(objectPosition, 400f); Ward.Cast(extend); } } } }