mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Fixes Salt Cure visual bug if mon fainted by direct attack (#3388)
* Fixes Salt Cure visual bug if mon fainted by direct attack * Removes duplicate give all tm/hms in the debug menu * test * Revert "Removes duplicate give all tm/hms in the debug menu" This reverts commit 4e80451d6f5898799ef9b887a068dc1e1a3df56e.
This commit is contained in:
parent
f7098414d3
commit
36174f12ae
@ -440,6 +440,7 @@ gBattleScriptsForMoveEffects::
|
|||||||
|
|
||||||
BattleScript_EffectSaltCure:
|
BattleScript_EffectSaltCure:
|
||||||
call BattleScript_EffectHit_Ret
|
call BattleScript_EffectHit_Ret
|
||||||
|
tryfaintmon BS_TARGET
|
||||||
jumpiffainted BS_TARGET, TRUE, BattleScript_EffectSaltCure_End
|
jumpiffainted BS_TARGET, TRUE, BattleScript_EffectSaltCure_End
|
||||||
applysaltcure BS_TARGET
|
applysaltcure BS_TARGET
|
||||||
printstring STRINGID_TARGETISBEINGSALTCURED
|
printstring STRINGID_TARGETISBEINGSALTCURED
|
||||||
|
@ -70,3 +70,17 @@ SINGLE_BATTLE_TEST("Salt Cure is removed when the afflicted Pokémon is switched
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SINGLE_BATTLE_TEST("If Salt Cure faints the target no status will be applied")
|
||||||
|
{
|
||||||
|
GIVEN {
|
||||||
|
PLAYER(SPECIES_WOBBUFFET);
|
||||||
|
OPPONENT(SPECIES_WOBBUFFET) { HP(1); }
|
||||||
|
} WHEN {
|
||||||
|
TURN { MOVE(player, MOVE_SALT_CURE); }
|
||||||
|
} SCENE {
|
||||||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_SALT_CURE, player);
|
||||||
|
NOT MESSAGE("Foe Wobbuffet is being salt cured!");
|
||||||
|
MESSAGE("Foe Wobbuffet fainted!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user