Fixed Warden’s and Arbiter’s animations popping on water tiles (#6831)

This commit is contained in:
Luis Miguel Iglesias Sánchez 2022-07-03 02:29:09 +02:00 committed by GitHub
parent 236a5cbfaa
commit 5d4683c664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View file

@ -18,6 +18,7 @@
### Translations
* Updated translations: Arabic, Chinese (Traditional), Polish, Finnish
### Units
* Fixed Wardens and Arbiters animations popping on water tiles (issue #6508)
### User interface
* Resolved broken layout in some low-resolution configurations (issue #5620, #6544)
### WML Engine

View file

@ -20,6 +20,12 @@
[/special_note]
die_sound=drake-die.ogg
{DEFENSE_ANIM "units/drakes/arbiter-defend-2.png" "units/drakes/arbiter-defend-1.png" {SOUND_LIST:DRAKE_HIT} }
[+defend]
[if]
terrain_type=W*,S*
submerge=0.45
[/if]
[/defend]
# [death]
# [/death]
[resistance]
@ -53,6 +59,10 @@
[/filter_attack]
direction=s
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4
[/if]
start_time=-300
[frame]
image="units/drakes/arbiter.png:50"
@ -72,6 +82,10 @@
[/filter_attack]
direction=se,sw
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4
[/if]
start_time=-300
[frame]
image="units/drakes/arbiter.png:50"
@ -104,6 +118,10 @@
[/filter_attack]
direction=s
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4
[/if]
start_time=-300
[frame]
image="units/drakes/arbiter.png:50"
@ -123,6 +141,10 @@
[/filter_attack]
direction=se,sw
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4
[/if]
start_time=-300
[frame]
image="units/drakes/arbiter.png:50"

View file

@ -21,6 +21,12 @@
[/special_note]
die_sound=drake-die.ogg
{DEFENSE_ANIM "units/drakes/warden-defend-2.png" "units/drakes/warden-defend-1.png" {SOUND_LIST:DRAKE_HIT} }
[+defend]
[if]
terrain_type=W*,S*
submerge=0.4
[/if]
[/defend]
[resistance]
pierce=80
[/resistance]
@ -54,6 +60,10 @@
[/filter_attack]
direction=s
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4~0.425
[/if]
start_time=-300
[frame]
image="units/drakes/warden.png:50"
@ -73,6 +83,10 @@
[/filter_attack]
direction=se,sw
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4~0.425
[/if]
start_time=-300
[frame]
image="units/drakes/warden.png:50"
@ -105,6 +119,10 @@
[/filter_attack]
direction=s
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4~0.35
[/if]
start_time=-300
[frame]
image="units/drakes/warden.png:50"
@ -124,6 +142,10 @@
[/filter_attack]
direction=se,sw
offset=0.0~0.1,0.1~0.0
[if]
terrain_type=W*,S*
submerge=0.4~0.35
[/if]
start_time=-300
[frame]
image="units/drakes/warden.png:50"