mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Touch up Weak Armor
This commit is contained in:
parent
b9052fb37d
commit
b8a634770f
@ -6289,8 +6289,8 @@ BattleScript_TargetAbilityStatRaise::
|
||||
return
|
||||
|
||||
BattleScript_WeakArmorActivates::
|
||||
setstatchanger STAT_DEF, 1, TRUE
|
||||
call BattleScript_AbilityPopUp
|
||||
setstatchanger STAT_DEF, 1, TRUE
|
||||
statbuffchange 0x1, BattleScript_WeakArmorActivatesSpeed
|
||||
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, 0x2, BattleScript_WeakArmorDefAnim
|
||||
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x3, BattleScript_WeakArmorActivatesSpeed
|
||||
@ -6304,7 +6304,7 @@ BattleScript_WeakArmorDefAnim:
|
||||
printstring STRINGID_TARGETABILITYSTATLOWER
|
||||
waitmessage 0x40
|
||||
BattleScript_WeakArmorActivatesSpeed:
|
||||
setstatchanger STAT_SPEED, 1, FALSE
|
||||
setstatchanger STAT_SPEED, 2, FALSE
|
||||
statbuffchange 0x1, BattleScript_WeakArmorActivatesEnd
|
||||
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, 0x2, BattleScript_WeakArmorSpeedAnim
|
||||
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x3, BattleScript_WeakArmorActivatesEnd
|
||||
|
@ -3157,6 +3157,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
|
||||
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||
&& TARGET_TURN_DAMAGED
|
||||
&& IsBattlerAlive(battler)
|
||||
&& gBattleMoves[gCurrentMove].split == SPLIT_PHYSICAL
|
||||
&& (gBattleMons[battler].statStages[STAT_SPEED] != 12 || gBattleMons[battler].statStages[STAT_DEF] != 0))
|
||||
{
|
||||
BattleScriptPushCursor();
|
||||
|
Loading…
Reference in New Issue
Block a user