module Effect
	class ActOnTick < Effect::Base

		def initialize(parent, interval)
			@interval = interval.to_sym
			@parent = parent

			define_singleton_method ('tick_' + interval.to_s).to_sym do |target|
				tick_event target
			end
		end

		def tick_event(target, additional_target = nil)
			return additional_target unless additional_target === nil
			return target
		end

		def describe
			"Each #{@interval.to_s} tick, "
		end

		def save_state
			[self.class.name, @interval] # Will take the inherited class name
		end
	end
end
module Effect
	class ActOnTick < Effect::Base

		def initialize(parent, interval)
			@interval = interval.to_sym
			@parent = parent

			define_singleton_method ('tick_' + interval.to_s).to_sym do |*args|
				tick_event *args
			end
		end

		def tick_event(target, additional_target = nil)
			return additional_target unless additional_target === nil
			return target
		end

		def describe
			"Each #{@interval.to_s} tick, "
		end

		def save_state
			[self.class.name, @interval] # Will take the inherited class name
		end
	end
end
Resolve issue with ticks not transmitting the optional extra arguments
Resolve issue with ticks not transmitting the optional extra arguments
