private static void Obj_AI_Base_OnPlaceItemInSlot(Obj_AI_Base sender, Obj_AI_BasePlaceItemInSlotEventArgs args) { if (!sender.IsMe) { return; } foreach (var item in spelldata.items) { if (item.Id == (int)args.Id) { if (!spelldata.activeitems.Contains(item)) { Game.OnUpdate += item.OnTick; spelldata.activeitems.Add(item); Game.PrintChat("<b>Activator#</b> - <font color=\"#FFF280\">" + item.Name + "</font> active!"); } } } }
private static void Obj_AI_Base_OnPlaceItemInSlot(Obj_AI_Base sender, Obj_AI_BasePlaceItemInSlotEventArgs args) { if (!sender.IsMe) return; foreach (var item in spelldata.items) if (item.Id == (int) args.Id) Game.OnUpdate += item.OnTick; }
private static void Obj_AI_Base_OnPlaceItemInSlot(Obj_AI_Base sender, Obj_AI_BasePlaceItemInSlotEventArgs args) { if (!sender.IsMe) return; foreach (var item in spelldata.items) { if (item.Id == (int) args.Id) { if (!spelldata.activeitems.Contains(item)) { Game.OnUpdate += item.OnTick; spelldata.activeitems.Add(item); Game.PrintChat("<b>Activator#</b> - <font color=\"#FFF280\">" + item.Name + "</font> active!"); if (item.Name == "Mikaels" || item.Name == "Quicksilver" || item.Name == "Dervish" || item.Name == "Mercurial") { Game.PrintChat("<b>Activator#</b> - Special buffs (for e.g Zed/Morgana ult) " + "are <font color=\"#FFF280\">not supported</font> yet!"); } } } } }
private static void Obj_AI_Base_OnPlaceItemInSlot(Obj_AI_Base sender, Obj_AI_BasePlaceItemInSlotEventArgs args) { if (!sender.IsMe) return; foreach (var item in spelldata.items) { if (item.Id == (int) args.Id) { if (!spelldata.activeitems.Contains(item)) { Game.OnUpdate += item.OnTick; spelldata.activeitems.Add(item); Game.PrintChat("<b>Activator#</b> - <font color=\"#FFF280\">" + item.Name + "</font> active!"); } } } }
private void Obj_AI_Hero_OnPlaceItemInSlot(Obj_AI_Base sender, Obj_AI_BasePlaceItemInSlotEventArgs args) { if (sender.IsMe) { itemChanged(); } }