mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
Fix bug where the chain was always being broken for first item option events.
This commit is contained in:
@@ -38,11 +38,12 @@ on :event, :object_action do |ctx, player, event|
|
|||||||
object_id = event.id
|
object_id = event.id
|
||||||
if (altar = PORTALS[object_id]) != nil # Get the altar associated with this exit portal.
|
if (altar = PORTALS[object_id]) != nil # Get the altar associated with this exit portal.
|
||||||
player.start_action(TeleportAction.new(player, altar.entrance_position, 1, altar.exit_position))
|
player.start_action(TeleportAction.new(player, altar.entrance_position, 1, altar.exit_position))
|
||||||
|
ctx.break_handler_chain
|
||||||
elsif (rune = RUNES[object_id]) != nil # Get the rune associated with this altar.
|
elsif (rune = RUNES[object_id]) != nil # Get the rune associated with this altar.
|
||||||
altar = CRAFTING_ALTARS[object_id]
|
altar = CRAFTING_ALTARS[object_id]
|
||||||
player.start_action(RunecraftingAction.new(player, rune, altar.crafting_centre))
|
player.start_action(RunecraftingAction.new(player, rune, altar.crafting_centre))
|
||||||
|
ctx.break_handler_chain
|
||||||
end
|
end
|
||||||
ctx.break_handler_chain
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user