← All scenarios
PHYS-007autoAttack

Triple Attack proc — Monk auto-attack with chance of multi-hit

Some passives turn auto-attacks into chance-based multi-hits. Triple Attack (Monk skill) gives auto-attacks a chance to hit 3 times. Tests that the library can express 'this auto-attack might be 1 hit or 3 hits' as a probabilistic outcome. In expected mode, returns the EV; in rolled mode, the outcome is sampled.

multiHitProcpassiveSkillProcautoAttackVariantexpectedValueComputation
Action
autoAttack
Auto-attack in expected mode
mode
expected
context.mapType
pve

Actors

Monk
player · monk · Lv75
attacker
Primary stats
str
80
agi
60
vit
50
int
30
dex
60
luk
20
Equipment
  • mainhand: chain · knuckle · +7 · ATK 105
Active effects
  • passive_triple_attack_lv5
Generic medium target
monster · Lv70
defender
bruteearth 1mediumnormal
HP 5000 / 5000
Hard DEF 20
Hard MDEF 10
Expected output
From the scenario fixture. Numerical values marked as null are placeholders pending rAthena verification.
hit

In expected mode, totalDamage = (0.70 * single_hit_damage) + (0.30 * 3 * triple_hit_damage). The breakdown should show both branches so the simulator can render 'EV breakdown: 70% chance of X, 30% chance of Y'.

Show full expected JSON
{
  "breakdown": {
    "tripleAttackChance": 0.3,
    "singleHitEV_present": true,
    "tripleHitEV_present": true,
    "_evComposition": "expectedValue is weighted sum of branches"
  }
}

Computed: DamageResult

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

Outcome
hit
1 hit · 391 damage
391
Pipeline breakdown
D-003 steps 2–13
WeaponratioATK198
× size × skill198
× (1 + 0.0% ATK%)198
+ StatusATK (200)398
× 1.00 element398
× (1 + 0.0% race/elem/size/class)398
crit none398
− 0 hard DEF398
− 7 soft DEF391
× (1 − 0.0% taken%)391
+ MasteryATK (0)391
floor + min(1)391
Inputs
From attacker / defender ResolvedStats
StatusATK200
WeaponATK198
EquipATK0
MasteryATK0
Size mult1.00×
Element mult1.00×
Race%0.0%
Element%0.0%
Size%0.0%
Class%0.0%
Taken%0.0%

Hits (1): hit 391