mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 17:34:20 +01:00
Implemented Take Heart's effect
This commit is contained in:
parent
d2a221eb85
commit
8ae57dc912
@ -425,6 +425,25 @@ gBattleScriptsForMoveEffects::
|
||||
.4byte BattleScript_EffectBarbBarrage @ EFFECT_BARB_BARRAGE
|
||||
.4byte BattleScript_EffectTripleArrows @ EFFECT_TRIPLE_ARROWS
|
||||
.4byte BattleScript_EffectInfernalParade @ EFFECT_INFERNAL_PARADE
|
||||
.4byte BattleScript_EffectTakeHeart @ EFFECT_TAKE_HEART
|
||||
|
||||
BattleScript_EffectTakeHeart::
|
||||
@ TO DO: Use modifybattlerstatstage here once PR #2470 is merged.
|
||||
printstring STRINGID_EMPTYSTRING3
|
||||
playstatchangeanimation BS_ATTACKER, BIT_SPATK, 0
|
||||
setstatchanger STAT_SPATK, 1, FALSE
|
||||
statbuffchange STAT_CHANGE_ALLOW_PTR, BattleScript_TakeHeartTrySpDef
|
||||
printfromtable gStatUpStringIds
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
BattleScript_TakeHeartTrySpDef:
|
||||
printstring STRINGID_EMPTYSTRING3
|
||||
playstatchangeanimation BS_ATTACKER, BIT_SPDEF, 0
|
||||
setstatchanger STAT_SPDEF, 1, FALSE
|
||||
statbuffchange STAT_CHANGE_ALLOW_PTR, BattleScript_TakeHeart_MoveEnd
|
||||
printfromtable gStatUpStringIds
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
BattleScript_TakeHeart_MoveEnd:
|
||||
goto BattleScript_MoveEnd
|
||||
|
||||
BattleScript_EffectInfernalParade::
|
||||
setmoveeffect MOVE_EFFECT_BURN
|
||||
|
@ -406,7 +406,8 @@
|
||||
#define EFFECT_BARB_BARRAGE 400
|
||||
#define EFFECT_TRIPLE_ARROWS 401
|
||||
#define EFFECT_INFERNAL_PARADE 402
|
||||
#define EFFECT_TAKE_HEART 403
|
||||
|
||||
#define NUM_BATTLE_MOVE_EFFECTS 403
|
||||
#define NUM_BATTLE_MOVE_EFFECTS 404
|
||||
|
||||
#endif // GUARD_CONSTANTS_BATTLE_MOVE_EFFECTS_H
|
||||
|
@ -12850,7 +12850,7 @@ const struct BattleMove gBattleMoves[MOVES_COUNT_Z] =
|
||||
|
||||
[MOVE_TAKE_HEART] =
|
||||
{
|
||||
.effect = EFFECT_PLACEHOLDER, // EFFECT_TAKE_HEART,
|
||||
.effect = EFFECT_TAKE_HEART,
|
||||
.power = 0,
|
||||
.type = TYPE_PSYCHIC,
|
||||
.accuracy = 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user