mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Added prompt for what to do with a caught Pokémon if the party is full, and a battle rule that forces a capture into the party
This commit is contained in:
@@ -294,7 +294,9 @@ class Battle::Move
|
||||
@battle.pbDisplay(_INTL("The substitute took damage for {1}!", target.pbThis(true)))
|
||||
end
|
||||
if target.damageState.critical
|
||||
if $game_temp.party_critical_hits_dealt && user.pbOwnedByPlayer?
|
||||
if $game_temp.party_critical_hits_dealt &&
|
||||
$game_temp.party_critical_hits_dealt[user.pokemonIndex] &&
|
||||
user.pbOwnedByPlayer?
|
||||
$game_temp.party_critical_hits_dealt[user.pokemonIndex] += 1
|
||||
end
|
||||
if target.damageState.affection_critical
|
||||
@@ -388,7 +390,9 @@ class Battle::Move
|
||||
target.lastHPLostFromFoe = damage # For Metal Burst
|
||||
target.lastFoeAttacker.push(user.index) # For Metal Burst
|
||||
end
|
||||
if $game_temp.party_direct_damage_taken && target.pbOwnedByPlayer?
|
||||
if $game_temp.party_direct_damage_taken &&
|
||||
$game_temp.party_direct_damage_taken[target.pokemonIndex] &&
|
||||
target.pbOwnedByPlayer?
|
||||
$game_temp.party_direct_damage_taken[target.pokemonIndex] += damage
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user