Phoenix Also, here I have my code for my card: createCard({
name: "Phoenix",
rarity: "Uncommon",
health: 900,
image: "https://phoenixcreativearts.co.uk/wp-content/uploads/2021/09/ae064181a2f68f13edc5e5d08276f95d_cropped_optimized.jpg",
offx: 0,
offy: 0,
description: "An inactive and inexperienced coder that enjoys gaming.",
hpcol: 255,
moves: [{
title: "Bad Project",
description: "Create a horribly made project and have the opponent play it, causing them to take 50 damage",
cost: 0,
cooldown: 1,
use: function (opp) {
opp.health -= 50;
}
},
{
title: "Grade Bragging",
description: "Brags about good grades dealing 90 damage and making the enemy feel Stupid for 2 turns, but causes this card to become Arrogant for 4 turns.",
cost: 3,
cooldown: 2,
use: function (opp, self) {
opp.health -= 90;
opp.status = "Stupid";
self.status = "Arrogant";
}
},
{
title: "Anger Outburst",
description: "Quickly builds anger and takes it out on the opponent, dealing 200 damage no matter what and makes the opponent Irritable. Does 400 damage if this card is Irritable.",
cost: 8,
cooldown: 5,
use: function (opp, self) {
if (self.status === "Irritable") {
opp.health -= 400;
} else {
opp.health -= 200;
}
}
}
],
});
The problems I have are that I want Anger Outburst to do damage even if the opponent has something to reduce or block damage (ex. Ravage's Impenetrable Vault/ItsDannyBruh's Barricade), and that I don't know how to make the Stupid effect last for 2 turns, and the Arrogant effect last for 4 turns.