You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
narration=`⭐ **${attacker.name}** prayed and received the labyrinth's divine intervention, healing ${divineHeal} HP and fortifying their body (+6 DEF)!`;
376
+
narration=`⭐ **${attacker.name}** prayed and received the labyrinth's divine intervention, healing ${divineHeal} HP and fortifying their body! (+6 DEF)`;
narration=`⭐ **${attacker.name}** prayed and received the labyrinth's divine intervention, healing ${divineHeal} HP and gaining resilience (+3 DEF)!`;
381
+
narration=`⭐ **${attacker.name}** prayed and received the labyrinth's divine intervention, healing ${divineHeal} HP and gaining resilience! (+3 DEF)`;
382
382
}
383
383
break;
384
384
case"Great Will":
@@ -422,6 +422,7 @@ async function simulateBattleStep(
422
422
}`;
423
423
break;
424
424
case"Spectral Exonorator":
425
+
constoldHp=attacker.hp;
425
426
consttempHp=attacker.hp;
426
427
attacker.hp=defender.hp;
427
428
defender.hp=tempHp;
@@ -442,7 +443,20 @@ async function simulateBattleStep(
442
443
attacker.speed=defender.speed;
443
444
defender.speed=tempSpd;
444
445
445
-
narration=`👻 **${attacker.name}** uses Spectral Exonorator, swapping bodies and souls with **${defender.name}**!`;
446
+
letbonusMsg="";
447
+
if(attacker.hp<oldHp){
448
+
attacker.attack+=2;
449
+
bonusMsg="(+2 ATK)";
450
+
}elseif(attacker.hp>oldHp){
451
+
attacker.defense+=2;
452
+
bonusMsg="(+2 DEF)";
453
+
}
454
+
455
+
attacker.abilities=attacker.abilities.filter(
456
+
(a)=>a!=="Spectral Exonorator",
457
+
);
458
+
459
+
narration=`👻 **${attacker.name}** uses Spectral Exonorator, swapping bodies and souls with **${defender.name}**! This ability is no longer available for **${attacker.name}**. ${bonusMsg}`;
0 commit comments