A simple solution for the "Area Damage" bug

Extended Edition

As some of you probably know, splash damage in AoM is a bit bugged. Here is how it works and what happens:

  1. Attack / RangedAttack / ChargedRangedAttack / WhirlwindAttack / JumpAttack in the protox have a "damage" parameter which determines how much damage is dealt. It is defined by type (hack, pierce or crush), value1 (amount of damage), value2 (area of effect) and options (which units are damaged).
  2. When no options are listed, damage is dealt to every unit in the area, including allies but excluding self.
  3. To avoid this, units that deals area damage (Titan, Phoenix, Nidhogg, Vermilion bird, Fire Giant special) have these options listed:

​

options="AttackEnemy|AttackGAIAUnits"

The options list all enemies and neutral units, but they don't list neutral buildings, so neutral buildings receive NO DAMAGE from these area attacks. This can be easily observed on Valley Of The Kings random map (with neutral Migdols on it) or in scenario editor.

To solve this: change the options to these:

options="AttackEnemy|AttackGAIAUnits|AttackGAIABuildings"

The third option isn't mentioned anywhere in the protox, but it's fully functional, and it's mentioned on the old forum and on the forum from 2020. I've used it in some of my mods and it works perfectly.

Side note: before patch 2.7 of EE, Phoenixes had no options listed for their crush damage, so they could damage everything, including neutral buildings and allies. This has been fixed in 2.7, so it's time to fix the area damage bug in general.

Posted Sep 10, 2022, 2:57 AM UTC

716
Loading comments…