X Tutup
Skip to content

Commit 0c5f74b

Browse files
PushmePullyumduggan
authored andcommitted
ULTIMA: ULTIMA6: Fix boomerang origin coordinates when returning
1 parent 12da032 commit 0c5f74b

File tree

1 file changed

+1
-1
lines changed
  • devtools/create_ultima/files/ultima6/scripts/u6

1 file changed

+1
-1
lines changed

devtools/create_ultima/files/ultima6/scripts/u6/actor.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ function actor_attack(attacker, target_x, target_y, target_z, weapon, foe)
15361536

15371537
if weapon_obj_n == 0x31 then --boomerang
15381538
if attacker.x ~= 0 and attacker.y ~= 0 then --hack to stop return projectile if the avatar has died
1539-
projectile(projectile_weapon_tbl[weapon_obj_n][1], target_x, target_y, attacker.x, attacker.y, projectile_weapon_tbl[weapon_obj_n][3], projectile_weapon_tbl[weapon_obj_n][4])
1539+
projectile(projectile_weapon_tbl[weapon_obj_n][1], coll_tiles[1].x, coll_tiles[1].y, attacker.x, attacker.y, projectile_weapon_tbl[weapon_obj_n][3], projectile_weapon_tbl[weapon_obj_n][4])
15401540
end
15411541
end
15421542
end

0 commit comments

Comments
 (0)
X Tutup