mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-26 11:11:20 +00:00
Fix gather bug
This commit is contained in:
parent
8e389ff824
commit
2d71885d45
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ class Gather < ActiveRecord::Base
|
||||||
elsif turn == 2 and gatherers.team(2).count == 5 and gatherers.team(1).count == 4
|
elsif turn == 2 and gatherers.team(2).count == 5 and gatherers.team(1).count == 4
|
||||||
update_attribute :turn, 1
|
update_attribute :turn, 1
|
||||||
elsif turn == 1 and gatherers.team(1).count == 6 and gatherers.team(2).count == 5
|
elsif turn == 1 and gatherers.team(1).count == 6 and gatherers.team(2).count == 5
|
||||||
gatherers.lobby.first.update_attributes(:team => 2, :skip_callbacks => true)
|
gatherers.lobby.first&.update_attributes(:team => 2, :skip_callbacks => true)
|
||||||
update_attribute :turn, 2
|
update_attribute :turn, 2
|
||||||
elsif gatherers.team(1).count == 6 and gatherers.team(2).count == 6
|
elsif gatherers.team(1).count == 6 and gatherers.team(2).count == 6
|
||||||
update_attribute :status, STATE_FINISHED
|
update_attribute :status, STATE_FINISHED
|
||||||
|
|
Loading…
Reference in a new issue