Adjust faint battler script (#8137)
This commit is contained in:
parent
41aba41838
commit
dea7d02e76
@ -4394,20 +4394,21 @@ BattleScript_EffectCamouflage::
|
||||
goto BattleScript_MoveEnd
|
||||
|
||||
BattleScript_FaintBattler::
|
||||
tryillusionoff BS_SCRIPTING
|
||||
tryillusionoff BS_FAINTED
|
||||
tryactivategulpmissile
|
||||
playfaintcry BS_SCRIPTING
|
||||
playfaintcry BS_FAINTED
|
||||
pause B_WAIT_TIME_LONG
|
||||
dofaintanimation BS_SCRIPTING
|
||||
dofaintanimation BS_FAINTED
|
||||
copybyte sBATTLER, gBattlerFainted @ for message
|
||||
printstring STRINGID_BATTLERFAINTED
|
||||
cleareffectsonfaint BS_SCRIPTING
|
||||
cleareffectsonfaint BS_FAINTED
|
||||
trytoclearprimalweather
|
||||
tryrevertweatherform
|
||||
flushtextbox
|
||||
waitanimation
|
||||
tryactivatesoulheart
|
||||
tryactivatereceiver BS_SCRIPTING
|
||||
trytrainerslidemsgfirstoff BS_SCRIPTING
|
||||
tryactivatereceiver BS_FAINTED
|
||||
trytrainerslidemsgfirstoff BS_FAINTED
|
||||
return
|
||||
|
||||
|
||||
|
||||
@ -4203,7 +4203,7 @@ static void Cmd_tryfaintmon(void)
|
||||
if (cmd->battler == BS_ATTACKER)
|
||||
TryUpdateEvolutionTracker(IF_DEFEAT_X_WITH_ITEMS, 1, MOVE_NONE);
|
||||
|
||||
gBattleScripting.battler = battler;
|
||||
gBattlerFainted = battler;
|
||||
faintScript = BattleScript_FaintBattler;
|
||||
if (!(gAbsentBattlerFlags & (1u << battler))
|
||||
&& !IsBattlerAlive(battler))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user