← All scenarios
MAG-009skill

Heaven's Drive vs high-MDEF target — verify MDEF behavior

Heaven's Drive is an Earth-element AoE that hits ground tiles. This scenario establishes whether (in our implementation) Heaven's Drive respects hard/soft MDEF normally or has a special defIgnore. Run against a Sage-class target with high MDEF.

magicalDamageMDEFInteractionearthElementheavensDrive
Action
skill
WZ_HEAVENDRIVE Lv5 in expected mode
skillId
WZ_HEAVENDRIVE
skillLevel
5
mode
expected
context.mapType
pvp

Actors

Wizard
player · wizard · Lv65
attacker
Primary stats
str
1
agi
20
vit
25
int
80
dex
55
luk
10
Equipment
  • mainhand: staff_of_wing · staff · +7 · ATK 60 · MATK 110
Sage with high INT (high soft MDEF)
player · Lv70
defender
Primary stats
str
1
agi
50
vit
30
int
99
dex
50
luk
20
demihumanneutral 1mediumnormal
HP 6500 / 6500
Hard DEF 20
Hard MDEF 40
Expected output
From the scenario fixture. Numerical values marked as null are placeholders pending rAthena verification.
hittotalDamage: pending

Critical assertion: breakdown should show BOTH hardMDEFSubtracted and softMDEFSubtracted are non-zero. Sages have very high soft MDEF from INT — if your library only subtracts hardMDEF and forgets soft MDEF, the damage will be much too high here. This scenario is intentionally targeted to catch that bug.

Show full expected JSON
{
  "breakdown": {
    "category": "magical",
    "attackElement": "earth",
    "elementMultiplier": 1,
    "hardMDEFSubtracted": 40,
    "softMDEFSubtracted_present": true,
    "softMDEFSubtracted_nonZero": true,
    "_targetSoftMDEFApprox": "floor(INT + INT/5 + DEX/5 + BaseLevel/4) ≈ 99 + 19 + 10 + 17 ≈ 145 — verify"
  }
}

Computed: MagicalDamageResult

Server-evaluated by calculateMagicalDamage() from @ro/core.

Outcome
hit
1 hit · 137 damage total · 137 per hit
137(1×137)
Pipeline breakdown
D-002 magical pipeline
baseMATK126
× (1 + 0.0% MATK%)126
× 2.25 skill283.5
× 1.00 element283.5
× (1 + 0.0% race/elem/size/class)283.5
− hard MDEF283.5
− soft MDEF137.5
× (1 − 0.0% taken%)137.5
floor + min(1) per hit137
× 1 hit137
Inputs
From attacker / defender ResolvedStats
StatusMATK126
WeaponMATK0
EquipMATK0
Skill mult2.25×
Element mult1.00×
Race%0.0%
Element%0.0%
Size%0.0%
Class%0.0%
Taken%0.0%

Each magical hit is identical in expected mode (no per-hit variance).