mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
new game plus
This commit is contained in:
@@ -53,6 +53,7 @@ class PokeBattle_Battler
|
||||
end
|
||||
return if @fainted # Has already fainted properly
|
||||
@battle.pbDisplayBrief(_INTL("{1} fainted!",pbThis)) if showMessage
|
||||
updateSpirits()
|
||||
PBDebug.log("[Pokémon fainted] #{pbThis} (#{@index})") if !showMessage
|
||||
@battle.scene.pbFaintBattler(self)
|
||||
pbInitEffects(false)
|
||||
@@ -80,6 +81,15 @@ class PokeBattle_Battler
|
||||
@battle.pbEndPrimordialWeather
|
||||
end
|
||||
|
||||
def updateSpirits()
|
||||
if $PokemonBag.pbQuantity(:ODDKEYSTONE)>=1 && @pokemon.hasType?(:GHOST)
|
||||
nbSpirits = pbGet(ODDKEYSTONE_NB_VARIABLE)
|
||||
if nbSpirits < 108
|
||||
pbSet(ODDKEYSTONE_NB_VARIABLE,nbSpirits+1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Move PP
|
||||
#=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user