This commit is contained in:
Daniel Odendahl Jr
2018-10-10 21:16:57 +00:00
parent 5a139ec497
commit 281418ed8a
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -53,7 +53,7 @@ module.exports = class BattleCommand extends Command {
if (miss) {
await msg.say(`${battle.attacker}'s special attack missed!`);
} else {
const damage = randomRange(battle.defender.guard ? 50 : 100, battle.defender.guard ? 100 : 200);
const damage = randomRange(battle.defender.guard ? 50 : 100, battle.defender.guard ? 100 : 150);
await msg.say(`${battle.attacker} deals **${damage}** damage!`);
battle.defender.dealDamage(damage);
}
@@ -61,12 +61,12 @@ module.exports = class BattleCommand extends Command {
battle.reset();
} else if (choice === 'cure') {
await msg.say(`${battle.attacker} heals **${battle.attacker.mp}** HP!`);
battle.attacker.heal(battle.attacker.mp);
battle.attacker.heal(Math.round(battle.attacker.mp / 2));
battle.attacker.useMP(battle.attacker.mp);
battle.reset();
} else if (choice === 'final') {
await msg.say(`${battle.attacker} uses their final move, dealing **100** damage!`);
battle.defender.dealDamage(100);
await msg.say(`${battle.attacker} uses their final move, dealing **150** damage!`);
battle.defender.dealDamage(150);
battle.attacker.useMP(100);
battle.attacker.usedFinal = true;
battle.reset();
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class Battler {
**${this.battle.opponent.user.tag}:** ${this.battle.opponent.hp} HP
`;
if (this.battle.turn === 1 || this.battle.turn === 2) {
content += '\n\n_Special uses 50 MP whether or not it hits. Cure uses all remaining MP, and heals that amount._';
content += '\n\n_Special uses 50 MP whether or not it hits. Cure takes remaining MP and heals half that amount._';
}
await msg.say(content);
const filter = res => {