Split script section AI_Move_EffectScores in two and rearranged it

This commit is contained in:
Maruno17
2022-06-15 19:15:03 +01:00
parent c0c672806d
commit 62b964adfa
4 changed files with 2667 additions and 2526 deletions

View File

@@ -718,8 +718,6 @@ class Battle::Move::LowerUserDefSpDef1 < Battle::Move::StatDownMove
end
end
#===============================================================================
# Decreases the user's Defense, Special Defense and Speed by 1 stage each.
# (V-create)
@@ -946,7 +944,7 @@ class Battle::Move::LowerTargetDefense1 < Battle::Move::TargetStatDownMove
end
#===============================================================================
# Decreases the target's Defense by 1 stage. Power is mutliplied by 1.5 if
# Decreases the target's Defense by 1 stage. Power is mutliplied by 1.5 if
# Gravity is in effect. (Grav Apple)
#===============================================================================
class Battle::Move::LowerTargetDefense1PowersUpInGravity < Battle::Move::LowerTargetDefense1

File diff suppressed because it is too large Load Diff

View File

@@ -175,8 +175,6 @@ class Battle::AI
return baseDmg if skill < PBTrainerAI.mediumSkill
# Covers all function codes which have their own def pbBaseDamage
case move.function
when "FlinchTargetTrampleMinimize" # Stomp
baseDmg *= 2 if skill >= PBTrainerAI.mediumSkill && target.effects[PBEffects::Minimize]
# Sonic Boom, Dragon Rage, Super Fang, Night Shade, Endeavor
when "FixedDamage20", "FixedDamage40", "FixedDamageHalfTargetHP",
"FixedDamageUserLevel", "LowerTargetHPToUserHP"