summaryrefslogtreecommitdiff
path: root/data/battle_scripts_1.s
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-07-20 17:09:02 -0400
committerGitHub <noreply@github.com>2020-07-20 17:09:02 -0400
commit27ac0109220dcae4bc7d72640429d86a1775263f (patch)
treeebe59d8dc7a12fea83ef65b52fd767c8878e3358 /data/battle_scripts_1.s
parent1cf2470aac038fce48a5777e36b00554af90d910 (diff)
parent28759f85693f5ad57f5bd2f391d05b43948409b7 (diff)
Merge pull request #1 from pret/master
Upstream
Diffstat (limited to 'data/battle_scripts_1.s')
-rw-r--r--data/battle_scripts_1.s28
1 files changed, 14 insertions, 14 deletions
diff --git a/data/battle_scripts_1.s b/data/battle_scripts_1.s
index f2f82ee50..3db9f28ff 100644
--- a/data/battle_scripts_1.s
+++ b/data/battle_scripts_1.s
@@ -3153,8 +3153,8 @@ BattleScript_PursuitDmgOnSwitchOut::
waitmessage 0x40
tryfaintmon BS_TARGET, FALSE, NULL
moveendfromto MOVEEND_ON_DAMAGE_ABILITIES, MOVEEND_CHOICE_MOVE
- various4 BS_TARGET
- jumpifbyte CMP_EQUAL, gBattleCommunication, 0x0, BattleScript_PursuitDmgOnSwitchOutRet
+ getbattlerfainted BS_TARGET
+ jumpifbyte CMP_EQUAL, gBattleCommunication, FALSE, BattleScript_PursuitDmgOnSwitchOutRet
setbyte sGIVEEXP_STATE, 0x0
getexp BS_TARGET
BattleScript_PursuitDmgOnSwitchOutRet:
@@ -4442,18 +4442,18 @@ BattleScript_FlushMessageBox::
printstring STRINGID_EMPTYSTRING3
return
-BattleScript_82DB881::
- setbyte gBattleCommunication + 1, 0x0
-BattleScript_82DB887::
- various8 BS_ATTACKER
- jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0x1, BattleScript_82DB89D
- printfromtable gStringIds_85CCF0A
- waitmessage 0x40
-BattleScript_82DB89D::
- addbyte gBattleCommunication + 1, 0x1
- jumpifbytenotequal gBattleCommunication + 1, gBattlersCount, BattleScript_82DB887
- setbyte gBattleCommunication, 0x0
- setbyte gBattleCommunication + 1, 0x0
+BattleScript_PalacePrintFlavorText::
+ setbyte gBattleCommunication + 1, 0
+BattleScript_PalaceTryBattlerFlavorText::
+ palaceflavortext BS_ATTACKER @ BS_ATTACKER here overwritten by gBattleCommunication + 1
+ jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, TRUE, BattleScript_PalaceEndFlavorText
+ printfromtable gBattlePalaceFlavorTextTable
+ waitmessage 0x40
+BattleScript_PalaceEndFlavorText::
+ addbyte gBattleCommunication + 1, 1
+ jumpifbytenotequal gBattleCommunication + 1, gBattlersCount, BattleScript_PalaceTryBattlerFlavorText
+ setbyte gBattleCommunication, 0
+ setbyte gBattleCommunication + 1, 0
end2
BattleScript_ArenaTurnBeginning::