Files
WoW-Hybrid-gateway/tests/spell_serializer_fixture.py
praxisandClaude Fable 5.2 7f2139d8d0 Offline test fixtures
883 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

12 lines
582 B
Python

#!/usr/bin/env python3
"""Actual native source writer is the oracle for spell learn/remove/replace bodies."""
import struct
import subprocess
import sys
for kind in range(3):
for spell in (78,12282,12664):
wire=struct.pack('<BI',kind,spell)+(struct.pack('<I',12282) if kind==2 else b'')
def run(mode):return subprocess.run([sys.argv[1],mode],input=wire,capture_output=True,check=True).stdout
assert run('--spell-event')==run('--gateway-spell-event')
print('Nine learned, removed and superceded spell bodies match the native Forever source serializers.')