mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Fixed evolution-related code causing errors in Battle Frontier battles
This commit is contained in:
@@ -86,7 +86,9 @@ class Battle::Battler
|
||||
# Do other things
|
||||
@battle.pbClearChoice(@index) # Reset choice
|
||||
pbOwnSide.effects[PBEffects::LastRoundFainted] = @battle.turnCount
|
||||
$game_temp.party_direct_damage_taken[@pokemonIndex] = 0 if pbOwnedByPlayer?
|
||||
if $game_temp.party_direct_damage_taken && pbOwnedByPlayer?
|
||||
$game_temp.party_direct_damage_taken[@pokemonIndex] = 0
|
||||
end
|
||||
# Check other battlers' abilities that trigger upon a battler fainting
|
||||
pbAbilitiesOnFainting
|
||||
# Check for end of primordial weather
|
||||
|
||||
Reference in New Issue
Block a user