lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.49 vs lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.50
- old
+ new
@@ -42,16 +42,16 @@
end
def scoring_play?
case @play_type
when 'fieldgoal'
- statistics.field_goal&.made?
+ statistics.field_goal&.any?(&:made?)
when 'extrapoint'
true # how does a missed PAT come in?
when 'safety'
true
else
- statistics.pass&.touchdown? || statistics.rush&.touchdown?
+ statistics.pass&.any?(&:touchdown?) || statistics.rush&.any?(&:touchdown?)
end
end
def event?
!play?