[Skill #034] [AMA] Lightning Strike (1.13c Parity) #188

Closed
opened 2026-09-22 02:40:04 +00:00 by troytt · 1 comment
Owner

Diablo II: Lord of Destruction v1.13c Skill Parity Specification

Field Value
Skill ID 34 (#034)
Skill Name Lightning Strike (skilldesc: lightning strike)
Class ama (Amazon)
Required Level (reqlevel) 30
Prerequisites (reqskill1..3) Charged Strike, -, -
Isolated Implementation Module src/game/skills/impl/ama/skill-034-lightning-strike.ts
Isolated Vitest Suite tests/skills/ama/skill-034-lightning-strike.test.ts

1. Authoritative 1.13c Skills.txt Function & Handler Dispatch

Function Slot 1.13c Value
srvstfunc (Server Start / Pre-Cast) 10
srvdofunc (Server Action Frame 0x01/0x02) 14
srvprgfunc1..3 (Progressive Charge Release) - / - / -
cltstfunc / cltdofunc (Client Start / Action) - / 22
cltprgfunc1..3 (Client Progressive Release) - / - / -
passive / checkfunc passive=- / checkfunc=-
auraevent1 / auraeventfunc1 - / -

2. Associated Missiles, States, Auras, Curses & Summons

Subsystem 1.13c Configuration
Server Missiles (srvmissile / a..c) - / a:lightningstrike, b:lightningstrike, c:lightningstrike
Client Missiles (cltmissile / cltmissilea) - / lightningstrike
Aura / Buff States (aurastate / auratgtstate) self:- / tgt:-
Aura / Buff Stats (aurastat1..3) -, -, -
Passive State & Stats (passivestate / passivestat1..3) state:- / -, -, -
Curse Priority (cursetype) -
Summon / Pet (summon / pettype / petmax) mon:- / type:- / max:-

3. 1.13c Base Numerical & Synergy Formulas (Patch_D2.mpq)

  • Mana Cost: mana=9, lvlmana=0 (256-fixed-point << HitShift)
  • Physical / Elemental Damage: MinDam=-, MaxDam=-, EType=ltng, EMin=1, EMax=25, ELen=-
  • AST calc1..4: calc1=20, calc2=ln34, calc3=-, calc4=-
  • Synergy Calculations (blvl strictly base allocated STAT_SKILLPTS only):
    • EDmgSymPerCalc: (skill('Charged Strike'.blvl)+skill('Lightning Bolt'.blvl)+skill('Power Strike'.blvl)+skill('Lightning Fury'.blvl)) * par8
    • DmgSymPerCalc: -
    • ELenSymPerCalc: -

4. R3 Verification & Merge Checklist

  • Isolated Git Worktree: Created via git worktree add ../wt-skill-34 -b feat/skill-34 from main.
  • 1.13c Implementation: src/game/skills/impl/ama/skill-034-lightning-strike.ts implements exact 1.13c srvstfunc/srvdofunc/srvprgfunc & numerical evaluation.
  • Automated Unit & Numerical Tests (slvl 1, 10, 20 + blvl Synergies): tests/skills/ama/skill-034-lightning-strike.test.ts passes 100% in Vitest verifying ManaCost, MinDmg, MaxDmg, ToHit, Duration, Radius, synergy scaling, and runtime combat/missile/state/summon effect.
  • Real-Browser Casting & Screenshot: Executed in headless Chromium (acts.html?arena=1&class=ama&skill=34&slvl=20&autocast=1) with zero console/page errors and PNG screenshot attached to this Issue.
  • Merge & Cleanup: Merged to main with fixes #<issue_number>, pushed to origin/main, verified Issue is closed, and removed worktree ../wt-skill-34 + branch feat/skill-34.
## Diablo II: Lord of Destruction v1.13c Skill Parity Specification | Field | Value | |---|---| | **Skill ID** | `34` (`#034`) | | **Skill Name** | **Lightning Strike** (`skilldesc: lightning strike`) | | **Class** | `ama` (Amazon) | | **Required Level (`reqlevel`)** | `30` | | **Prerequisites (`reqskill1..3`)** | `Charged Strike`, `-`, `-` | | **Isolated Implementation Module** | `src/game/skills/impl/ama/skill-034-lightning-strike.ts` | | **Isolated Vitest Suite** | `tests/skills/ama/skill-034-lightning-strike.test.ts` | --- ### 1. Authoritative 1.13c `Skills.txt` Function & Handler Dispatch | Function Slot | 1.13c Value | |---|---| | **`srvstfunc`** (Server Start / Pre-Cast) | `10` | | **`srvdofunc`** (Server Action Frame `0x01`/`0x02`) | `14` | | **`srvprgfunc1..3`** (Progressive Charge Release) | `-` / `-` / `-` | | **`cltstfunc` / `cltdofunc`** (Client Start / Action) | `-` / `22` | | **`cltprgfunc1..3`** (Client Progressive Release) | `-` / `-` / `-` | | **`passive` / `checkfunc`** | `passive=-` / `checkfunc=-` | | **`auraevent1` / `auraeventfunc1`** | `-` / `-` | ### 2. Associated Missiles, States, Auras, Curses & Summons | Subsystem | 1.13c Configuration | |---|---| | **Server Missiles (`srvmissile` / `a..c`)** | `-` / `a:lightningstrike`, `b:lightningstrike`, `c:lightningstrike` | | **Client Missiles (`cltmissile` / `cltmissilea`)** | `-` / `lightningstrike` | | **Aura / Buff States (`aurastate` / `auratgtstate`)** | `self:-` / `tgt:-` | | **Aura / Buff Stats (`aurastat1..3`)** | `-`, `-`, `-` | | **Passive State & Stats (`passivestate` / `passivestat1..3`)** | `state:-` / `-`, `-`, `-` | | **Curse Priority (`cursetype`)** | `-` | | **Summon / Pet (`summon` / `pettype` / `petmax`)** | `mon:-` / `type:-` / `max:-` | ### 3. 1.13c Base Numerical & Synergy Formulas (`Patch_D2.mpq`) - **Mana Cost**: `mana=9`, `lvlmana=0` (256-fixed-point `<< HitShift`) - **Physical / Elemental Damage**: `MinDam=-`, `MaxDam=-`, `EType=ltng`, `EMin=1`, `EMax=25`, `ELen=-` - **AST `calc1..4`**: `calc1=20`, `calc2=ln34`, `calc3=-`, `calc4=-` - **Synergy Calculations (`blvl` strictly base allocated `STAT_SKILLPTS` only)**: - `EDmgSymPerCalc`: `(skill('Charged Strike'.blvl)+skill('Lightning Bolt'.blvl)+skill('Power Strike'.blvl)+skill('Lightning Fury'.blvl)) * par8` - `DmgSymPerCalc`: `-` - `ELenSymPerCalc`: `-` --- ### 4. R3 Verification & Merge Checklist - [ ] **Isolated Git Worktree**: Created via `git worktree add ../wt-skill-34 -b feat/skill-34` from `main`. - [ ] **1.13c Implementation**: `src/game/skills/impl/ama/skill-034-lightning-strike.ts` implements exact 1.13c `srvstfunc`/`srvdofunc`/`srvprgfunc` & numerical evaluation. - [ ] **Automated Unit & Numerical Tests (`slvl` 1, 10, 20 + `blvl` Synergies)**: `tests/skills/ama/skill-034-lightning-strike.test.ts` passes 100% in Vitest verifying `ManaCost`, `MinDmg`, `MaxDmg`, `ToHit`, `Duration`, `Radius`, synergy scaling, and runtime combat/missile/state/summon effect. - [ ] **Real-Browser Casting & Screenshot**: Executed in headless Chromium (`acts.html?arena=1&class=ama&skill=34&slvl=20&autocast=1`) with zero console/page errors and PNG screenshot attached to this Issue. - [ ] **Merge & Cleanup**: Merged to `main` with `fixes #<issue_number>`, pushed to `origin/main`, verified Issue is `closed`, and removed worktree `../wt-skill-34` + branch `feat/skill-34`.
troytt added this to the All Player Skills (v1.13c Parity) milestone 2026-09-22 02:40:04 +00:00
Author
Owner

✅ Completed: [Skill #034] Lightning Strike (AMA) — 1.13c Parity Verified

1. Isolated Worktree & Module Implementation

  • Worktree & Branch: ../wt-skill-034 (feat/skill-034)
  • Skill Module: src/game/skills/impl/ama/skill-034-lightning-strike.ts
  • Vitest Suite: tests/skills/ama/skill-034-lightning-strike.test.ts
  • 1.13c Dispatch: srvstfunc=10, srvdofunc=14, missile=lightningstrike, state=none, summon=none

2. 1.13c Numerical & Synergy Verification Table

Metric slvl = 1 slvl = 10 slvl = 20 (0 Syn) slvl = 20 (+20 blvl Syn)
Mana Cost (usmc) 9 (2304) 9 (2304) 9 (2304) 9 (2304)
Phys Dmg (Min-Max) 0-0 0-0 0-0 0-0
Elem Dmg (Min-Max) 1-25 (ltng) 1-125 (ltng) 1-295 (ltng) 2-767 (+160%)
AR % / Duration / Radius +0% / 0f / 20 +0% / 0f / 20 +0% / 0f / 20 +0% / 0f / 20

3. Headless Chromium (chromium-1228) Runtime Telemetry & Screenshot

  • Arena State: ready=true, classCode=ama (am), castCount=1, anim=A1:6, totalDamageDealt=1693, consoleErrors=0
  • Captured PNG Size: 587306 bytes

Skill #034 Lightning Strike

### ✅ Completed: [Skill #034] Lightning Strike (`AMA`) — 1.13c Parity Verified #### 1. Isolated Worktree & Module Implementation - **Worktree & Branch**: `../wt-skill-034` (`feat/skill-034`) - **Skill Module**: `src/game/skills/impl/ama/skill-034-lightning-strike.ts` - **Vitest Suite**: `tests/skills/ama/skill-034-lightning-strike.test.ts` - **1.13c Dispatch**: `srvstfunc=10`, `srvdofunc=14`, `missile=lightningstrike`, `state=none`, `summon=none` #### 2. 1.13c Numerical & Synergy Verification Table | Metric | `slvl = 1` | `slvl = 10` | `slvl = 20` (0 Syn) | `slvl = 20` (+20 `blvl` Syn) | | :--- | :---: | :---: | :---: | :---: | | **Mana Cost (`usmc`)** | `9` (`2304`) | `9` (`2304`) | `9` (`2304`) | `9` (`2304`) | | **Phys Dmg (`Min-Max`)** | `0-0` | `0-0` | `0-0` | `0-0` | | **Elem Dmg (`Min-Max`)** | `1-25` (`ltng`) | `1-125` (`ltng`) | `1-295` (`ltng`) | `2-767` (+160%) | | **AR % / Duration / Radius** | `+0%` / `0f` / `20` | `+0%` / `0f` / `20` | `+0%` / `0f` / `20` | `+0%` / `0f` / `20` | #### 3. Headless Chromium (`chromium-1228`) Runtime Telemetry & Screenshot - **Arena State**: `ready=true`, `classCode=ama` (`am`), `castCount=1`, `anim=A1:6`, `totalDamageDealt=1693`, `consoleErrors=0` - **Captured PNG Size**: `587306` bytes ![Skill #034 Lightning Strike](https://git.projectdiablo2.cn/attachments/d9ccef18-cf40-4704-93e2-4b71fd475928)
Sign in to join this conversation.
No Label
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: troytt/diablo2-web#188
No description provided.