private static void Invoke(MissileClient client) { OnPostBasicAttack?.Invoke(client.SpellCaster, new PostBasicAttackArgs(client.SpellCaster, client.Target, client.StartPosition, client.EndPosition, client.NetworkId, client.Team)); }
private static void Obj_AI_Base_OnSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (!sender.IsMelee || !args.IsAutoAttack()) { return; } OnPostBasicAttack?.Invoke(sender, new PostBasicAttackArgs(sender, args.Target, args.End, args.Start, sender.NetworkId, sender.Team)); }