private static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender is AIHeroClient) { var entry = new LastCastedSpellEntry(args.SData.Name, Utils.TickCount, ObjectManager.Player); if (CastedSpells.ContainsKey(sender.NetworkId)) { CastedSpells[sender.NetworkId] = entry; } else { CastedSpells.Add(sender.NetworkId, entry); } } }