Added move flag "CannnotMetronome"

This commit is contained in:
Maruno17
2022-01-12 23:15:46 +00:00
parent 25b009b344
commit 8a89b7fbf4
6 changed files with 250 additions and 268 deletions

View File

@@ -63,6 +63,10 @@ module GameData
return pbGetMessageFromHash(MessageTypes::MoveDescriptions, @real_description)
end
def has_flag?(flag)
return @flags.any? { |f| f.downcase == flag.downcase }
end
def physical?
return false if @base_damage == 0
return @category == 0 if Settings::MOVE_CATEGORY_PER_MOVE