mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-05 21:07:17 -05:00
Fixes Leech Seed recovery not applying behind Sub
This commit is contained in:
parent
297cd83871
commit
54ffc6bf08
|
|
@ -5776,6 +5776,7 @@ BattleScript_LeechSeedTurnDrainHealBlock::
|
|||
BattleScript_LeechSeedTurnDrainRecovery::
|
||||
call BattleScript_LeechSeedTurnDrain
|
||||
BattleScript_LeechSeedTurnDrainGainHp:
|
||||
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_PASSIVE_DAMAGE
|
||||
healthbarupdate BS_TARGET
|
||||
datahpupdate BS_TARGET
|
||||
printfromtable gLeechSeedStringIds
|
||||
|
|
|
|||
|
|
@ -66,11 +66,11 @@ DOUBLE_BATTLE_TEST("Leech Seed will drain HP based on speed of the drained mon")
|
|||
OPPONENT(SPECIES_WYNAUT) { Speed(3); }
|
||||
OPPONENT(SPECIES_WOBBUFFET) { Speed(4); }
|
||||
} WHEN {
|
||||
TURN {
|
||||
MOVE(playerLeft, MOVE_LEECH_SEED, target: opponentLeft);
|
||||
MOVE(playerRight, MOVE_LEECH_SEED, target: opponentRight);
|
||||
MOVE(opponentLeft, MOVE_LEECH_SEED, target: playerLeft);
|
||||
MOVE(opponentRight, MOVE_LEECH_SEED, target: playerRight);
|
||||
TURN {
|
||||
MOVE(playerLeft, MOVE_LEECH_SEED, target: opponentLeft);
|
||||
MOVE(playerRight, MOVE_LEECH_SEED, target: opponentRight);
|
||||
MOVE(opponentLeft, MOVE_LEECH_SEED, target: playerLeft);
|
||||
MOVE(opponentRight, MOVE_LEECH_SEED, target: playerRight);
|
||||
}
|
||||
} SCENE {
|
||||
ANIMATION(ANIM_TYPE_MOVE, MOVE_LEECH_SEED, opponentRight);
|
||||
|
|
@ -88,6 +88,24 @@ DOUBLE_BATTLE_TEST("Leech Seed will drain HP based on speed of the drained mon")
|
|||
}
|
||||
}
|
||||
|
||||
SINGLE_BATTLE_TEST("Leech Seeded recovers health through Substitute")
|
||||
{
|
||||
GIVEN {
|
||||
PLAYER(SPECIES_WYNAUT);
|
||||
OPPONENT(SPECIES_WOBBUFFET);
|
||||
} WHEN {
|
||||
TURN { MOVE(player, MOVE_SUBSTITUTE); }
|
||||
TURN { MOVE(player, MOVE_LEECH_SEED); }
|
||||
TURN {}
|
||||
} SCENE {
|
||||
ANIMATION(ANIM_TYPE_MOVE, MOVE_SUBSTITUTE, player);
|
||||
ANIMATION(ANIM_TYPE_MOVE, MOVE_LEECH_SEED, player);
|
||||
HP_BAR(player);
|
||||
HP_BAR(opponent);
|
||||
HP_BAR(player);
|
||||
}
|
||||
}
|
||||
|
||||
TO_DO_BATTLE_TEST("Leech Seed doesn't affect already seeded targets")
|
||||
TO_DO_BATTLE_TEST("Leech Seed's effect is paused until a new battler replaces the original user's position") // Faint, can't be replaced, then revived.
|
||||
TO_DO_BATTLE_TEST("Leech Seed's effect pause still prevents it from being seeded again")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user