Various bug fixes

This commit is contained in:
Maruno17
2021-10-20 13:53:39 +01:00
parent d3a07df6ab
commit 3a3b44574f
4 changed files with 6 additions and 27 deletions

View File

@@ -308,12 +308,6 @@ MultipleForms.register(:ARCEUS,{
}
})
MultipleForms.register(:BASCULIN,{
"getFormOnCreation" => proc { |pkmn|
next rand(2)
}
})
MultipleForms.register(:DARMANITAN,{
"getFormOnLeavingBattle" => proc { |pkmn,battle,usedInBattle,endBattle|
next 2 * (pkmn.form / 2)
@@ -397,14 +391,6 @@ MultipleForms.register(:SCATTERBUG,{
MultipleForms.copy(:SCATTERBUG,:SPEWPA,:VIVILLON)
MultipleForms.register(:FLABEBE,{
"getFormOnCreation" => proc { |pkmn|
next rand(5)
}
})
MultipleForms.copy(:FLABEBE,:FLOETTE,:FLORGES)
MultipleForms.register(:FURFROU,{
"getForm" => proc { |pkmn|
if !pkmn.time_form_set ||
@@ -470,12 +456,6 @@ MultipleForms.register(:HOOPA,{
}
})
MultipleForms.register(:ORICORIO,{
"getFormOnCreation" => proc { |pkmn|
next rand(4) # 0=red, 1=yellow, 2=pink, 3=purple
},
})
MultipleForms.register(:ROCKRUFF,{
"getForm" => proc { |pkmn|
next if pkmn.form_simple >= 2 # Own Tempo Rockruff cannot become another form
@@ -602,7 +582,8 @@ MultipleForms.copy(:TOXEL, :TOXTRICITY)
MultipleForms.register(:SINISTEA, {
"getFormOnCreation" => proc { |pkmn|
next rand(2)
next 1 if rand(100) < 10 # Antique
next 0 # Phony
}
})
@@ -698,7 +679,7 @@ MultipleForms.register(:ZAMAZENTA, {
})
MultipleForms.register(:URSHIFU, {
"getForm" => proc { |pkmn|
"getFormOnCreation" => proc { |pkmn|
next rand(2)
}
})

View File

@@ -333,7 +333,7 @@ class PokeBattle_Move_AllBattlersLoseHalfHPUserSkipsNextTurn < PokeBattle_Move
def pbEffectGeneral(user)
@battle.eachBattler do |b|
next if b.hp==1
b.pbReduceHP(i.hp/2,false)
b.pbReduceHP(b.hp / 2, false)
end
@battle.pbDisplay(_INTL("Each Pokémon's HP was halved!"))
@battle.eachBattler { |b| b.pbItemHPHealCheck }