mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-13 16:04:58 +00:00
AI now keeps their last defined Pokémon for last, tweaks to some battle effects based on mechanics generation
This commit is contained in:
@@ -18,6 +18,18 @@ class PokeBattle_Move_RaiseUserAttack2 < PokeBattle_StatUpMove
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# If this move KO's the target, increases the user's Attack by 2 stages.
|
||||
# (Fell Stinger (Gen 6-))
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_RaiseUserAttack2IfTargetFaints < PokeBattle_Move
|
||||
def pbEffectAfterAllHits(user, target)
|
||||
return if !target.damageState.fainted
|
||||
return if !user.pbCanRaiseStatStage?(:ATTACK, user, self)
|
||||
user.pbRaiseStatStage(:ATTACK, 2, user)
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Increases the user's Attack by 3 stages.
|
||||
#===============================================================================
|
||||
@@ -30,7 +42,7 @@ end
|
||||
|
||||
#===============================================================================
|
||||
# If this move KO's the target, increases the user's Attack by 3 stages.
|
||||
# (Fell Stinger)
|
||||
# (Fell Stinger (Gen 7+))
|
||||
#===============================================================================
|
||||
class PokeBattle_Move_RaiseUserAttack3IfTargetFaints < PokeBattle_Move
|
||||
def pbEffectAfterAllHits(user,target)
|
||||
|
||||
Reference in New Issue
Block a user