Make frostbite affect wild ogres when sighted

This way it's less obvious that they were not affected before being
sighted.
This commit is contained in:
Thewodoros 2025-01-22 19:55:53 +03:00 committed by Dalas121
parent 24df7aaa8e
commit 6ff26aad31

View File

@ -712,6 +712,24 @@
variable=frostbite_units
[/store_unit]
[if]
{VARIABLE_CONDITIONAL ogres_sighted equals yes}
[then]
[store_unit]
[filter]
side=5
[/filter]
kill=no
variable=frostbite_ogres
[/store_unit]
[set_variables]
name=frostbite_units
mode=append
to_variable=frostbite_ogres
[/set_variables]
[/then]
[/if]
[sound]
name=wind.ogg
[/sound]
@ -1449,7 +1467,7 @@ I shall not fall here."
[/event]
[event]
name=victory
{CLEAR_VARIABLE frostbite_animate,frostbite_amount,frostbite_units,unit}
{CLEAR_VARIABLE frostbite_animate,frostbite_amount,frostbite_units,frostbite_ogres,unit}
{CLEAR_VARIABLE elixir_drinker}
[/event]