1
0
Fork 0
forked from OpenNeo/impress

hopeful roulette species support ids fix

This commit is contained in:
Emi Matchu 2011-01-27 17:46:20 -05:00
parent 7152cd0c50
commit 8a36155994

View file

@ -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