Skip to content

Commit

Permalink
Remove commented out code from ContinuousEffects
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Nov 7, 2024
1 parent 77b80a1 commit 3ed5b3d
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions lib/magic/permanents/continuous_effects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,42 +100,6 @@ def keyword_grant_static_abilities
def static_abilities_for(permanent)
static_abilities.applies_to(permanent)
end


# attr_writer :types, :keywords, :power, :toughness


# def type_grant_effects
# effects_by_type(Abilities::Static::TypeGrant)
# end

# def keyword_grant_effects
# effects_by_type(Abilities::Static::KeywordGrant)
# end

# def power_and_toughness_effects
# effects_by_type(Abilities::Static::PowerAndToughnessModification)
# end

# def power_grant_effects
# power_and_toughness_effects.select { |effect| effect.power_modification > 0 }
# end

# def counter_power_modifications
# permanent.counters.sum(&:power_modification)
# end

# def counter_toughness_modifications
# permanent.counters.sum(&:toughness_modification)
# end

# def toughness_grant_effects
# power_and_toughness_effects.select { |effect| effect.toughness_modification > 0 }
# end

# def effects_by_type(type)
# effects.select { |effect| effect.is_a?(type) }
# end
end
end
end

0 comments on commit 3ed5b3d

Please sign in to comment.