From 98372858c4a0c45cda0a27b4f96f209ae00aa23a Mon Sep 17 00:00:00 2001 From: shed- Date: Mon, 2 Mar 2015 17:24:44 +0300 Subject: [PATCH] Properly pass variadic arguments in the dialogue plugin. --- data/plugins/location/tutorial-island/guide.rb | 2 +- data/plugins/quest/repository.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/plugins/location/tutorial-island/guide.rb b/data/plugins/location/tutorial-island/guide.rb index efa0b04b..16abb698 100644 --- a/data/plugins/location/tutorial-island/guide.rb +++ b/data/plugins/location/tutorial-island/guide.rb @@ -95,7 +95,7 @@ conversation :tutorial_runescape_guide do text "To continue the tutorial go through that door over there, and speak to your first instructor." continue :close => true do |player| - if (player.tutorial_island_progress == :not_started) + if (player.tutorial_island_progress < :runescape_guide_finished) reset_hint_icon(player) # TODO door hint icon player.tutorial_island_progress = :runescape_guide_finished diff --git a/data/plugins/quest/repository.rb b/data/plugins/quest/repository.rb index ce6189ac..ca827367 100644 --- a/data/plugins/quest/repository.rb +++ b/data/plugins/quest/repository.rb @@ -116,7 +116,7 @@ class Player args[0] = arg.name if arg.kind_of?(QuestStage) end - result = super(symbol, args) + result = super(symbol, *args) string = symbol.to_s if (string.end_with?('_progress'))