mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Add support for specifying the option for events in the declaration (where applicable).
This commit is contained in:
@@ -45,8 +45,8 @@ class DummyAction < DistancedAction
|
||||
end
|
||||
end
|
||||
|
||||
on :event, :object_action do |ctx, player, event|
|
||||
if (event.option == 2 and event.id == DUMMY_ID)
|
||||
on :event, :second_object_action do |ctx, player, event|
|
||||
if (event.id == DUMMY_ID)
|
||||
player.start_action(DummyAction.new(player, event.position))
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user