Exemple #1
0
        public override void OnHitNPCWithProj(Projectile proj, NPC target, int damage, float knockback, bool crit)
        {
            Main.NewText(Main.player[proj.owner].armor[1]);
            Main.NewText(proj.magic);
            if (proj.magic == true && PlayerHasArmourEquippedOfType(2761, proj) == true)
            {
                healMod = 0.5f;

                healValue = (int)Math.Floor((float)damage * healMod);

                Healing.VampireHeal(damage, target.position);
                Main.player[proj.owner].statLife += healValue;
                Main.player[proj.owner].HealEffect(healValue);

                Main.NewText("Healing Should Have Triggered...");
            }
        }