Document trainer battle scripts (#430)
This commit is contained in:
committed by
Marcus Huderle
parent
fe06bbe3f6
commit
6068495619
+2
-2
@@ -1192,7 +1192,7 @@ bool8 HandleWishPerishSongOnTurnEnd(void)
|
||||
// fall through
|
||||
case 2:
|
||||
if ((gBattleTypeFlags & BATTLE_TYPE_ARENA)
|
||||
&& gBattleStruct->field_DA == 2
|
||||
&& gBattleStruct->arenaTurnCounter == 2
|
||||
&& gBattleMons[0].hp != 0 && gBattleMons[1].hp != 0)
|
||||
{
|
||||
s32 i;
|
||||
@@ -1238,7 +1238,7 @@ bool8 HandleFaintedMonActions(void)
|
||||
{
|
||||
gBattlerFainted = gBattlerTarget = gBattleStruct->faintedActionsBattlerId;
|
||||
if (gBattleMons[gBattleStruct->faintedActionsBattlerId].hp == 0
|
||||
&& !(gBattleStruct->field_DF & gBitTable[gBattlerPartyIndexes[gBattleStruct->faintedActionsBattlerId]])
|
||||
&& !(gBattleStruct->givenExpMons & gBitTable[gBattlerPartyIndexes[gBattleStruct->faintedActionsBattlerId]])
|
||||
&& !(gAbsentBattlerFlags & gBitTable[gBattleStruct->faintedActionsBattlerId]))
|
||||
{
|
||||
BattleScriptExecute(BattleScript_GiveExp);
|
||||
|
||||
Reference in New Issue
Block a user