Skip to content

Commit

Permalink
Fix Poisonous Bow unit animation
Browse files Browse the repository at this point in the history
Part of issue #69.
  • Loading branch information
irydacea committed Jul 26, 2020
1 parent 9b9f0d6 commit 777650a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 26 deletions.
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ Invasion from the Unknown - Changelog

Version 2.1.4.1+dev:
--------------------

* Scenarios:
* S8 - Errand of Hope:
* Fixed the poisonous bow animation using the unit's original baseframe
even after leveling up (issue #69).


Version 2.1.4.1:
Expand Down
34 changes: 9 additions & 25 deletions macros/items.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -146,35 +146,19 @@
[filter_attack]
name=poisonous bow
[/filter_attack]

missile_start_time=-150
[missile_frame]
begin=-150
end=0
image="projectiles/missile-n.png"
image_diagonal="projectiles/missile-ne.png"
image="projectiles/missile-n.png:150"
image_diagonal="projectiles/missile-ne.png:150"
[/missile_frame]
[if]
hits=yes
[frame]
begin=-375
end=-300
image=$unit.image
sound=bow.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-375
end=-300
image=$unit.image
sound=bow-miss.ogg
[/frame]
[/else]

start_time=-375
[frame]
begin=-300
end=20
image=$unit.image
duration=400
[/frame]

{SOUND:HIT_AND_MISS bow.ogg bow-miss.ogg -375}
[/attack_anim]
[/effect]
[/object]
Expand Down

0 comments on commit 777650a

Please sign in to comment.