Obsidian Statue and Destroyer
Source baseline: open-realm-main-2026-10-29-23-15.zip. Reference:
Blizzard's Obsidian Statue
and Destroyer.
Visual evidence comes from the original MPQ/unit/ability table inspection supplied
by the project maintainer on 31 October 2026, not from guesses based on filenames.
Owned game-side paths
skills/s_undead_abilities.c:Arpl(Essence of Blight) andArpm(Spirit Touch).skills/s_requested_abilities.c: permanentAaveDestroyer conversion and Morph presentation.skills/s_hero_passives.c,skills/s_attack.c: mana-paidAfakattack modifier.skills/s_human_abilities.c: area dispel /Advmtarget refund.skills/s_creep_abilities.c:Aabsfriendly unit-target homing mana transfer.skills/s_spell.c: generic spell admission, mana commit, cooldown and attack-modifier manual order.
Statue restoration
Arpl uses DataA HP; Arpm uses DataB mana. Both scan the
ability's authored area and target-mask using S_SpellAllowsAreaTarget(). Only
wounded/mana-depleted recipients qualify, up to six per casting in stable entity
order; the mask excludes mechanical recipients when organic is set.
The normal spell commit charges the first Cost; each additional recipient
through the fifth pays another Cost; a sixth receives restoration at no
additional cost. Existing caster mana constrains how many can be restored. The
authored Brpl/Brpm timed buff inhibits simultaneous restoration of the same
type on the same recipient. Unlike an ad-hoc global timestamp, this uses normal
status expiration and persistence. Maps omitting the buff do not receive that
suppression. If the status array is full, the candidate is skipped.
Each cast queues CasterArt at origin, SpecialArt at overhead, plus one
TargetArt for every recipient actually restored, and resolves the ability
sound alias through the shared sound layer.
The confirmed stock assignments are:
| Ability | Caster | Special | Target |
|---|---|---|---|
Arpl |
ReplenishHealthCaster.mdx |
ReplenishHealthCasterOverhead.mdx |
Human HealTarget.mdx |
Arpm |
ReplenishManaCaster.mdx |
ReplenishManaCasterOverhead.mdx |
SpiritTouchTarget.mdx |
The exact retail order of six recipients, target-art timing and overlap window remain observational gaps. The current entity-order selection is deterministic, not a claim that retail chooses the same recipients.
Permanent Destroyer Form
Aave takes its source ID from AbilityData.DataA and destination from
UnitID. The conversion checks the authored research availability and the
positive cost difference between destination/source UnitBalance
(gold, lumber, extra food) before rebinding the same edict with
G_TransformUnitType(). Resources are charged only after successful rebind.
The destination begins with zero mana, keeps its JASS identity, is assigned its
own stats/attack/flight profile, and has no reversion thinker.
Both uobs and ubsp use
Units\\Undead\\ObsidianStatue\\ObsidianStatue.mdx. The destination's
alternate animation property selects Destroyer visuals. The game plays the
untagged Morph sequence while keeping the unit at ground height, then adds
alternate at the authored Crumble2/geoset handoff (about 48.35% through the
sequence) and raises it to the destination's authored moveHeight over the
remainder. This preserves the stock rubble effect on the ground. The property
change preserves the active Morph frame instead of restarting into Morph
Alternate; normal alternate Stand/Walk/Attack sequences take over after the
morph ends. The timing is based on the inspected stock MDX event tracks and
still warrants an in-game visual check against retail.
Destroyer abilities
- Orb damage ownership:
Afakis the mana-paid projectile modifier.S_DestroyerOrbCommitAttack()adds itsDataAbonus to the missile only after payment; impacts use that snapshot and must not queryAfaka second time.ANakis a distinct neutral/creep passive handled byS_OrbAnnihilationDamage()at hit time. These rawcodes must not be conflated. - Normal weapon:
AvengerMissile.mdx, homing, authored weapon speed 900. AfakOrb of Annihilation: manual one-shot and autocast use the same attack-modifier order, spend authored mana and addDataAdamage on a successful shot; the missile uses the ability's authoredMissileArt(stock:AnnihilationMissile.mdx). Once the weapon projectile is allocated, Orb spends mana once and snapshotsDataAbonus,DataDfull radius,DataEmedium radius,Areaouter radius andDataB/DataCfalloffs. Even a plainWPN_MISSILEweapon uses the existing generic Missile Splash impact path for an empowered Orb. Conversely, aWPN_MSPLASHweapon that owns stockAfakdoes not perform Orb splash while the modifier is off or unpaid. The missile'sDeathevent owns the hit sound and presentation; other weapons are unchanged. If the Orb cannot be paid for, the attack remains a normal missile attack. Manual one-shot Orb state is consumed when the shot is released, not again on hit.AdvmDevour Magic: reuses the shared area-dispel inverse lifecycle. It now refundsDataAHP/DataBmana once per hostile buffed unit, rather than once per removed status; friendly buffs and Sentinel wards produce no refund.DataEdamages hostile summons. It spawns authored special art and sound at the impact point. Travel of the authoredDevourMagicBirthMissile.mdxis still missing.AabsAbsorb Mana: a unit-target spell with a homing projectile (AbsorbManaBirthMissile.mdxvia authored MissileArt); on valid impact, transfers up toDataB, capped by source mana and the Destroyer's empty capacity, without creating mana. The missile is retained through its Death impact animation/SND event, rather than freed before the visual can finish. Cancellation, projectile save/load and mid-flight target disappearance need focused testing.
Regression and verification
game/tests/t_spell.c covers the restoration recipient limit and masks, plus
the active Absorb Mana command's target admission. Remaining recommended
integration fixtures: full cast-pipeline mana accounting, overlapping-Statue
suppression, Rusp/resource/food rejections and permanent transformation,
projectile impact after target death or save/load, Orb mana/splash and Devour
Magic per-hostile-target refund. Custom values should be used in addition to
stock-shaped tests. The engine is validated separately by the project test
suite; this document records current implementation gaps rather than claiming
complete retail parity.
Visual investigation and remaining verification
MPQ animation-event inspection (31 October 2026) confirms:
Aave: forward morph begins at 23,333 ms; SND fires there, Crumble2 SPN at 24,300 ms, geoset alpha handoff at 24,333 ms, end at 25,333 ms.Afak:AnnihilationMissile.mdxhas Birth, Stand and Death sequences, including launch/hit SND events; no additional splash model is authored.Advm: missile Birth hasDevourMagic.wav, and Death has generic hit SND. SpecialArt isDispelMagicTarget.mdx.
The current projectile mover is straight-line: Advm's configured 0.10
missile arc is not yet simulated. Whether retail applies the gameplay dispel
strictly at missile impact has not been established from model data alone;
the engine now follows the visibly coherent impact-time policy. Projectile
Death event playback depends on the usual renderer event-crossing behavior.
No gameplay tests were executed during patch preparation.