private void OnPlayerSwapItem(Obj_AI_Base sender, PlayerSwapItemEventArgs args) { if (sender.IsMe) { Redemption = new Spell(Player.GetSpellSlot("itemredemption"), Range); } }
private static void Player_OnSwapItem(AIHeroClient sender, PlayerSwapItemEventArgs args) { if (!sender.IsMe) return; Queuer.Tiamat = ObjectManager.Player.InventoryItems.FirstOrDefault( a => a.Id == ItemId.Tiamat_Melee_Only || a.Id == ItemId.Ravenous_Hydra_Melee_Only); }