mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 19:54:14 +01:00
Merge pull request #1289 from LOuroboros/final_gambit
Corrected Final Gambit's move data and tweaked its effect
This commit is contained in:
commit
b7b1b26b57
@ -1082,16 +1082,15 @@ BattleScript_EffectFinalGambit:
|
|||||||
waitstate
|
waitstate
|
||||||
healthbarupdate BS_TARGET
|
healthbarupdate BS_TARGET
|
||||||
datahpupdate BS_TARGET
|
datahpupdate BS_TARGET
|
||||||
critmessage
|
|
||||||
waitmessage 0x40
|
|
||||||
resultmessage
|
resultmessage
|
||||||
waitmessage 0x40
|
waitmessage 0x40
|
||||||
seteffectwithchance
|
dmgtocurrattackerhp
|
||||||
tryfaintmon BS_TARGET, FALSE, NULL
|
|
||||||
jumpifmovehadnoeffect BattleScript_MoveEnd
|
|
||||||
healthbarupdate BS_ATTACKER
|
healthbarupdate BS_ATTACKER
|
||||||
datahpupdate BS_ATTACKER
|
datahpupdate BS_ATTACKER
|
||||||
|
seteffectwithchance
|
||||||
tryfaintmon BS_ATTACKER, FALSE, NULL
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
||||||
|
tryfaintmon BS_TARGET, FALSE, NULL
|
||||||
|
jumpifmovehadnoeffect BattleScript_MoveEnd
|
||||||
goto BattleScript_MoveEnd
|
goto BattleScript_MoveEnd
|
||||||
|
|
||||||
BattleScript_EffectHitSwitchTarget:
|
BattleScript_EffectHitSwitchTarget:
|
||||||
|
@ -7986,7 +7986,7 @@ const struct BattleMove gBattleMoves[MOVES_COUNT] =
|
|||||||
|
|
||||||
[MOVE_FINAL_GAMBIT] =
|
[MOVE_FINAL_GAMBIT] =
|
||||||
{
|
{
|
||||||
.effect = EFFECT_HIT_SWITCH_TARGET,
|
.effect = EFFECT_FINAL_GAMBIT,
|
||||||
.power = 1,
|
.power = 1,
|
||||||
.type = TYPE_FIGHTING,
|
.type = TYPE_FIGHTING,
|
||||||
.accuracy = 100,
|
.accuracy = 100,
|
||||||
@ -7994,7 +7994,7 @@ const struct BattleMove gBattleMoves[MOVES_COUNT] =
|
|||||||
.secondaryEffectChance = 0,
|
.secondaryEffectChance = 0,
|
||||||
.target = MOVE_TARGET_SELECTED,
|
.target = MOVE_TARGET_SELECTED,
|
||||||
.priority = 0,
|
.priority = 0,
|
||||||
.flags = FLAG_PROTECT_AFFECTED,
|
.flags = FLAG_PROTECT_AFFECTED | FLAG_KINGSROCK_AFFECTED,
|
||||||
.split = SPLIT_SPECIAL,
|
.split = SPLIT_SPECIAL,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user