Defence only counts while guarding
Every monster card shows ATK and DEF, but DEF reduces damage only while the monster is guarding. The basic attack computes its damage as:
- Where
- main.dol, battle code (attack damage: battle_fx_attack_basic, battle_fx_special_attack, battle_fx_damage)
- DEF used
- Only while the target guards
- Typical basic attack damage
- About 10% of ATK, give or take 1% of ATK
- Special and combined attacks
- The same rule
- Damage cards
- DEF never counts, guarding or not
- Intended
- Not knownUnconfirmed
- Visible
- Yes, in every battle
power = ATK + bonuses (at most 12,000; doubled on a critical hit)
damage = power * r / 10000 + (power - guardDEF) / 10 r: random, -100 to +100
guardDEF is the target’s DEF only while the target is guarding. Otherwise it is 0, and the damage is about a tenth of the attacker’s power, give or take a tenth of that. A guard then halves the damage again. The guard ends when a basic attack does damage to the monster, or when its own next turn begins.
Outside a guard, a monster with 3,000 DEF takes the same damage from a basic attack as one with 0 DEF. Special attacks and combined attacks use the same formula. Damage cards leave DEF out altogether: they deal a tenth of the card’s power, give or take 1%, halved when the target guards. DEF does matter in other ways (it is part of a monster’s rating, which feeds experience and battle scores), but not in the damage of ordinary hits.
The guard is the battle menu’s DEFENSE command (the R button). Whether DEF was meant to count only there is not known.
Battles that end with both sides standing
A battle also ends when no monster on either side has energy left to act. If monsters are still alive on both sides, the side with the higher battle score wins and equal scores draw, so a battle can be won or lost with the opponent still on its feet.
Evidence
The formula is the basic-attack function of the battle code (battle_fx_attack_basic), whose decompiled code matches the original machine code exactly; the special and combined attacks repeat it, and the damage-card function (battle_fx_damage) has no DEF term. guardDEF is read from the target only when its guard flag is set. The flag is set by the guard command and cleared by a damaging basic attack and at the start of the monster’s turn (battle_mon_clear_guard).