diff --git a/images/units/undead/zombie-rider-die-1.png b/images/units/undead/zombie-rider-die-1.png new file mode 100644 index 00000000..9012248a Binary files /dev/null and b/images/units/undead/zombie-rider-die-1.png differ diff --git a/images/units/undead/zombie-rider-die-2.png b/images/units/undead/zombie-rider-die-2.png new file mode 100644 index 00000000..2c4d3c00 Binary files /dev/null and b/images/units/undead/zombie-rider-die-2.png differ diff --git a/units/Zombie_Rider.cfg b/units/Zombie_Rider.cfg index 1c8f7012..754b5aae 100644 --- a/units/Zombie_Rider.cfg +++ b/units/Zombie_Rider.cfg @@ -26,8 +26,8 @@ impact=80 cold=50 pierce=80 - fire=130 - arcane=150 + fire=110 + arcane=130 [/resistance] [attack] name=axe @@ -96,6 +96,51 @@ image="units/undead/zombie-rider.png:25" [/frame] [/attack_anim] + [death] + start_time=0 + [frame] + image="units/undead/zombie-rider-die-[1~2].png:100" + [/frame] + [frame] + image="units/undead/soulless-mounted-die-[3~4].png:100" + [/frame] + [frame] + image="units/undead/soulless-die-[5~10].png:100" + [/frame] + [/death] + [animation] + apply_to=pre_teleport + start_time=-900 + [frame] + image="units/undead/zombie-rider-die-[1~2].png:100" + [/frame] + [frame] + image="units/undead/soulless-mounted-die-[3~4].png:100" + [/frame] + [frame] + image="units/undead/soulless-die-[5~10].png:100" + [/frame] + [frame] + image="misc/blank-hex.png:100" + [/frame] + [/animation] + + [animation] + apply_to=post_teleport + start_time=-900 + [frame] + image="misc/blank-hex.png:300" + [/frame] + [frame] + image="units/undead/soulless-die-[10~5].png:100" + [/frame] + [frame] + image="units/undead/soulless-mounted-die-[4~3].png:100" + [/frame] + [frame] + image="units/undead/zombie-rider-die-[2~1].png:100" + [/frame] + [/animation] {GENERIC_AMLA units/undead/zombie-rider.png units/undead/zombie-rider-defend.png units/undead/zombie-rider-defend.png units/undead/zombie-rider.png units/undead/zombie-rider-defend.png units/undead/zombie-rider-defend.png ( [advancement] max_times=1 @@ -224,6 +269,22 @@ [/effect] {AMLA_DEFAULT_BONUSES} [/advancement] + [advancement] + max_times=1 + always_display=yes + id=revulsion + description= _ "causing opponents to lose 5% resistances every time they hit (halves every turn)" + image=attacks/wail.png + strict_amla=yes + require_amla="" + [effect] + apply_to=new_ability + [abilities] + {ABILITY_REVULSION} + [/abilities] + [/effect] + {AMLA_DEFAULT_BONUSES} + [/advancement] [advancement] max_times=1 always_display=yes @@ -262,6 +323,22 @@ [/effect] {AMLA_DEFAULT_BONUSES} [/advancement] + [advancement] + max_times=1 + always_display=yes + id=recall + description= _ "able to teleport to an Ancient Lich, Arch Necromancer, Demilich or Lich King" + image=attacks/mud-glob.png + strict_amla=yes + require_amla="" + [effect] + apply_to=new_ability + [abilities] + {ABILITY_HOMECOMING} + [/abilities] + [/effect] + {AMLA_DEFAULT_BONUSES} + [/advancement] [advancement] id=armour max_times=5 @@ -278,13 +355,13 @@ impact=1 fire=1 cold=-3 - arcane=2 + arcane=1 [/resistance] [/effect] {AMLA_DEFAULT_BONUSES} [/advancement] [advancement] - max_times=3 + max_times=5 always_display=yes id=movement description= _ "faster" @@ -298,4 +375,4 @@ {AMLA_DEFAULT_BONUSES} [/advancement] ) "Zombie Rider"} -[/unit_type] \ No newline at end of file +[/unit_type] diff --git a/utils/abilities.cfg b/utils/abilities.cfg index 6185ee4c..a70be7e3 100644 --- a/utils/abilities.cfg +++ b/utils/abilities.cfg @@ -1631,6 +1631,13 @@ Enemy units cannot see this unit during dawn or dusk, except if they have units description= _ "After the damage with this weapon is dealt, the target takes 5 points of impact damage, that is unaffected by charge or slow." [/dummy] #enddef +#define ABILITY_REVULSION + [dummy] + id=revulsion + name= _ "revulsion" + description= _ "Any enemies hitting this unit will lose 5% resistances. This weakness halves every turn." + [/dummy] +#enddef #define ABILITY_WARDRUMS [dummy] id=wardrums diff --git a/utils/abilities_events.cfg b/utils/abilities_events.cfg index 8d9e7ff2..22c92481 100644 --- a/utils/abilities_events.cfg +++ b/utils/abilities_events.cfg @@ -5773,6 +5773,30 @@ [/set_resolve_intensity] [/event] + [event] + name=attacker hits + first_time_only=no + [filter_second] + ability=revulsion + [/filter_second] + [set_resolve_intensity] + id=$unit.id + sub=5 + [/set_resolve_intensity] + [/event] + + [event] + name=defender hits + first_time_only=no + [filter] + ability=revulsion + [/filter] + [set_resolve_intensity] + id=$second_unit.id + sub=5 + [/set_resolve_intensity] + [/event] + [event] name=attacker hits first_time_only=no