Is it possible to make Mana Burn work with TP rather than MP?
Just change the letter in all places in the formula. The only difference is there's no such thing as "mtp," it's just 100.
<JS Pre-Damage As User>
if (this.isAttack()) {
let turns = user.buffTurns(5);
turns = Math.max(3, turns);
user.addBuff(5, turns);
let tTurns = target.buffTurns(5);
tTurns = Math.max(3, turns);
target.addDebuff(5, turns);
let damage = (user.mat - target.mdf) * 0.4;
damage = Math.ceil(damage);
value += Math.max(0, damage);
const color = [0, 255, 255, 64];
const duration = 8;
$gameScreen.startFlash(color, duration);
}
</JS Pre-Damage As User><JS Post-Damage As User>
if (this.isHpEffect() && this.isAttack() && this.isPhysical()) {
target.startDamagePopup();
const elementId = 2;
const baseDamage = 20;
const damage = Math.ceil(target.elementRate(elementId) * baseDamage);
$gameTemp.requestAnimation([target], 66);
target.gainHp(-damage);
target.startDamagePopup();
}
</JS Post-Damage As User>tileWidth() with no underscore.