public void Unequip(ArtifactCard artifactCard) { for (int i = 0; i < card.abilities.Count; i++) { if (card.abilities[i] == artifactCard.ability) { card.abilities.RemoveAt(i); } } card.artifactCounters.attack -= artifactCard.stats.attack; card.artifactCounters.defense -= artifactCard.stats.defense; card.artifactCounters.evasion -= artifactCard.stats.evasion; card.artifactCounters.maxHp -= artifactCard.stats.maxHp; card.GetDamaged(artifactCard.stats.maxHp); equippedArtifact = null; }