From 8a361559944060fc8af78dd82d428e6ceb760845 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 27 Jan 2011 17:46:20 -0500 Subject: [PATCH] hopeful roulette species support ids fix --- app/models/roulette.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/roulette.rb b/app/models/roulette.rb index ecee607f..bb24e640 100644 --- a/app/models/roulette.rb +++ b/app/models/roulette.rb @@ -41,7 +41,7 @@ class Roulette item.affected_zones.each do |zone| checked_zone_id = zone.id next if checked_zone_id == zone_id - if item.species_support_ids.include?(@pet_type.species_id) + if item.species_support_ids.empty? || item.species_support_ids.include?(@pet_type.species_id) if i = unoccupied_zone_ids.find_index(zone_id) unoccupied_zone_ids.delete zone_id else