public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { if (accent.onHit != null) { accent.onHit(player, target, this, damage, crit); } }
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { try { Player owner = Main.player[projectile.owner]; if (accent.onHit != null) { accent.onHit(owner, target, (ProceduralSword)owner.inventory[owner.selectedItem].modItem, damage, crit); } } catch (SystemException e) { Main.NewText(e.ToString()); ErrorLogger.Log(e.ToString()); } }