Class: PfrpgUtility::Prerequisite::HeroclassFeaturePrereq

Inherits:
PfrpgUtility::Prerequisite
  • Object
show all
Defined in:
lib/pfrpg_utility/prerequisite/heroclass_feature_prereq.rb

Instance Method Summary collapse

Instance Method Details

#match(character) ⇒ Object



2
3
4
5
# File 'lib/pfrpg_utility/prerequisite/heroclass_feature_prereq.rb', line 2

def match(character)
  found = character.class_features.find { |x| x.name.upcase[@attribute.upcase] }
  return (found != nil)
end