mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Fixed Grav Apple having the incorrect damage boost (#179)
* Fixed Grav Apple having the incorrect damage boost In the official games, Grav Apple has a damage boost of 1.5x under Gravity, not 2x. This has been fixed. * Updated move effect class name * Apply updated function code * Update moves.txt
This commit is contained in:
@@ -946,12 +946,12 @@ class Battle::Move::LowerTargetDefense1 < Battle::Move::TargetStatDownMove
|
|||||||
end
|
end
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# Decreases the target's Defense by 1 stage. Power is doubled if Gravity is in
|
# Decreases the target's Defense by 1 stage. Power is mutliplied by 1.5 if
|
||||||
# effect. (Grav Apple)
|
# Gravity is in effect. (Grav Apple)
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
class Battle::Move::LowerTargetDefense1DoublePowerInGravity < Battle::Move::LowerTargetDefense1
|
class Battle::Move::LowerTargetDefense1PowersUpInGravity < Battle::Move::LowerTargetDefense1
|
||||||
def pbBaseDamage(baseDmg, user, target)
|
def pbBaseDamage(baseDmg, user, target)
|
||||||
baseDmg *= 2 if @battle.field.effects[PBEffects::Gravity] > 0
|
baseDmg = baseDmg * 3 / 2 if @battle.field.effects[PBEffects::Gravity] > 0
|
||||||
return baseDmg
|
return baseDmg
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3063,7 +3063,7 @@ class Battle::AI
|
|||||||
score -= target.stages[:SPECIAL_ATTACK] * 20
|
score -= target.stages[:SPECIAL_ATTACK] * 20
|
||||||
end
|
end
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
when "LowerTargetDefense1DoublePowerInGravity"
|
when "LowerTargetDefense1PowersUpInGravity"
|
||||||
if target.pbCanLowerStatStage?(:DEFENSE, user)
|
if target.pbCanLowerStatStage?(:DEFENSE, user)
|
||||||
score += 20
|
score += 20
|
||||||
score += target.stages[:DEFENSE] * 20
|
score += target.stages[:DEFENSE] * 20
|
||||||
|
|||||||
@@ -3610,7 +3610,7 @@ Power = 80
|
|||||||
Accuracy = 100
|
Accuracy = 100
|
||||||
TotalPP = 10
|
TotalPP = 10
|
||||||
Target = NearOther
|
Target = NearOther
|
||||||
FunctionCode = LowerTargetDefense1DoublePowerInGravity
|
FunctionCode = LowerTargetDefense1PowersUpInGravity
|
||||||
Flags = CanProtect,CanMirrorMove,CannotMetronome
|
Flags = CanProtect,CanMirrorMove,CannotMetronome
|
||||||
EffectChance = 100
|
EffectChance = 100
|
||||||
Description = The user inflicts damage by dropping an apple from high above. This also lowers the target's Defense.
|
Description = The user inflicts damage by dropping an apple from high above. This also lowers the target's Defense.
|
||||||
|
|||||||
@@ -3610,7 +3610,7 @@ Power = 80
|
|||||||
Accuracy = 100
|
Accuracy = 100
|
||||||
TotalPP = 10
|
TotalPP = 10
|
||||||
Target = NearOther
|
Target = NearOther
|
||||||
FunctionCode = LowerTargetDefense1DoublePowerInGravity
|
FunctionCode = LowerTargetDefense1PowersUpInGravity
|
||||||
Flags = CanProtect,CanMirrorMove,CannotMetronome
|
Flags = CanProtect,CanMirrorMove,CannotMetronome
|
||||||
EffectChance = 100
|
EffectChance = 100
|
||||||
Description = The user inflicts damage by dropping an apple from high above. This also lowers the target's Defense.
|
Description = The user inflicts damage by dropping an apple from high above. This also lowers the target's Defense.
|
||||||
|
|||||||
Reference in New Issue
Block a user