Added underscore in DefaultForm species flag for consistency

This commit is contained in:
Maruno17
2022-03-31 20:20:29 +01:00
parent c012a7323a
commit e87d55f56f
4 changed files with 14 additions and 14 deletions

View File

@@ -214,7 +214,7 @@ module GameData
def base_form
@flags.each do |flag|
return $~[1].to_i if flag[/^DefaultForm(\d+)$/i]
return $~[1].to_i if flag[/^DefaultForm_(\d+)$/i]
end
return @form
end

View File

@@ -422,7 +422,7 @@ class Battle::Move::ThrowUserItemAtTarget < Battle::Move
def pbBaseDamage(baseDmg, user, target)
return 0 if !user.item
user.item.flags.each do |flag|
return [$~[1].to_i, 10].min if flag[/^Fling_(\d+)$/i]
return [$~[1].to_i, 10].max if flag[/^Fling_(\d+)$/i]
end
return 10
end