home / h3_units / units

Menu
  • Open in marimo
  • llms.txt

units: 127

๐Ÿ“– Damage Formula โ€” how combat damage is calculated

Final damage dealt by a creature stack in combat:

DMGf = DMGb ร— (1 + I1 + I2 + I3 + I4 + I5) ร— (1 โˆ’ R1) ร— (1 โˆ’ R2 โˆ’ R3) ร— (1 โˆ’ R4) ร— (1 โˆ’ R5) ร— (1 โˆ’ R6) ร— (1 โˆ’ R7) ร— (1 โˆ’ R8)  [ร— L1 in HotA]

Base damage (DMGb)

  • Stack โ‰ค 10: sum of a random roll in [min_dmg, max_dmg] per creature.
  • Stack > 10: roll 10 random values, sum, multiply by N/10 (N = stack size), round down.

Offense modifiers (increase)

  • I1 โ€” Attack-Defense difference. If attacker's total attack > defender's total defense: +5% per point of difference (capped at +300%, i.e. ร—4). I1 = 0 when negative.
  • R1 โ€” If defense > attack: โˆ’2.5% per point (capped at โˆ’70%, i.e. ร—0.30). R1 = 0 when positive. I1 and R1 are mutually exclusive.
  • I2 โ€” Secondary skills: Archery (ranged) gives +0/10/25/50%, Offense (melee) gives +0/10/20/30% at none/basic/adv/expert.
  • I3 โ€” Specialty bonus for Archery/Offense specialists (Orrin, Gundula, Crag Hack, Corkes): I3 = 0.05 ร— hero_level ร— I2. Adela's Bless specialty: I3 = 0.03 ร— hero_level รท creature_level.
  • I4 โ€” Lucky strike: 1.00 if triggered, 0 otherwise. Chance scales with luck (+1โ†’4.17%, +2โ†’8.33%, +3โ†’12.5%).
  • I5 โ€” Creature abilities: Dread Knight death blow = 1.00, hate bonus (e.g. Angels vs Devils) = 0.50, jousting (Cavalier/Champion) = 0.05 ร— hexes travelled, elemental double damage = 1.00.

Defense modifiers (reduce)

  • R2 โ€” Armorer skill: 0/5/10/15% at none/basic/adv/expert.
  • R3 โ€” Armorer specialty (Mephala, Neela, Tazar): R3 = 0.05 ร— hero_level ร— R2.
  • R4 โ€” Magic shields: Shield (melee) = 15/30%, Air Shield (ranged) = 25/50% at basic/adv-expert.
  • R5 โ€” Range penalty (50% at 10+ hexes) or melee penalty (50% for ranged units in melee).
  • R6 โ€” Obstacle penalty (50% when shooting through intact siege walls).
  • R7 โ€” Mind spells: retaliation after Blind (50% basic, 25% advanced), Forgetfulness (50% ranged damage).
  • R8 โ€” Creature specials: Psychic Elemental vs mind-immune (50%), Magic Elemental vs spell-immune (50%), petrified target (50%), paralyzed retaliation (25%).

Luck (HotA only)

  • L1 โ€” Replaces I4 in HotA: lucky strike = 2.00, normal = 1.00, unlucky = 0.50. Negative luck introduces unlucky strikes.

Source: heroes.thelazy.net โ€” Damage ยท AI/Fight Value

This data as json

rowid portrait name town level attack defense min_dmg max_dmg hp speed growth ai_value gold resource special icon
127 Olgoi-Khorkhoi Factory 5+ 15 12 12 16 60 10 3 1220 650   Burrowing, Immune to Blinding and Stone gaze, Devours corpses
Powered by Datasette · Queries took 0.737ms