diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index d43675d8bc..e7831cb697 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -15,6 +15,7 @@ using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; using CalamityMod.NPCs.TownNPCs; using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Rogue; using CalamityMod.Tiles.Ores; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -2944,6 +2945,14 @@ namespace CalamityMod.NPCs.Yharon } #endregion + #region Projectile Resists + public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (projectile.type == ModContent.ProjectileType()) + damage = (int)(damage * 0.95); + } + #endregion + #region HP Bar Cooldown Slot and Stats public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) {