public virtual void AddHealth(int amt) { if (Buffs.HasBuff(typeof(InvincibleBuff))) { return; } if (Manager.Health + amt <= Manager.MaxHealth) { if (Manager.Health + amt > 0) { Manager.Health += amt; if (amt > 0) { damageIndicator.NewDamage(amt, Color.Green); } else { damageIndicator.NewDamage(amt, Color.Red); Buffs.AddBuff(new InvincibleBuff(25)); } } else if (this != Game.PlayerCharacter) { Delete(); } } else { Manager.Health = Manager.MaxHealth; } }