# They're just a way to apply Oracle corrections, they shouldn't be actually included
# so delete them once they've done their job
class PatchDeleteErrataSets < Patch
  def call
    delete_printing_if do |card|
      card["set"]["types"].include?("errata")
    end

    @sets.delete_if do |set|
      set["types"].include?("errata")
    end
  end
end

# They're just a way to apply Oracle corrections, they shouldn't be actually included
# so delete them once they've done their job
class PatchDeleteErrataSets < Patch
  def call
    delete_printing_if do |card|
      card["set"]["type"] == "errata"
    end

    @sets.delete_if do |set|
      set["types"].include?("errata")
    end
  end
end

--- 
+++ 
@@ -3,7 +3,7 @@
 class PatchDeleteErrataSets < Patch
   def call
     delete_printing_if do |card|
-      card["set"]["type"] == "errata"
+      card["set"]["types"].include?("errata")
     end
 
     @sets.delete_if do |set|
Fix PatchDeleteErrataSets for changed patch order
