I implemented the functions for the moves, but I'm having trouble putting in the "Grade Bragging" ability so that the effects are only in play for a specific amount of turns. Also, I'm not sure whether "Bad Project" should cost 1 energy or not. You can choose which one. Also, I want "Anger Outburst" to always deal damage, even if the opponent has something to reduce or block the damage (ex. Ravage's "Impenetrable Vault", Blockyheadman's "Long Gone", or ItsDannyBruh's "Barricader"). I think everything else is good, so can you put it in? Here's the code:
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;
}
}
}
],
});```