Fix Mirror Armor and Sticky Web interaction (#4713)
* fix Mirror Armor and Sticky Web interaction * fix strings
This commit is contained in:
parent
6dc8b82e92
commit
e60e6b6008
@ -3213,7 +3213,8 @@ BattleScript_MirrorArmorReflectStickyWeb:
|
||||
call BattleScript_AbilityPopUp
|
||||
setattackertostickywebuser
|
||||
jumpifbyteequal gBattlerAttacker, gBattlerTarget, BattleScript_StickyWebOnSwitchInEnd @ Sticky web user not on field -> no stat loss
|
||||
goto BattleScript_MirrorArmorReflectStatLoss
|
||||
call BattleScript_MirrorArmorReflectStatLoss
|
||||
goto BattleScript_StickyWebOnSwitchInEnd
|
||||
|
||||
BattleScript_StatDown::
|
||||
playanimation BS_EFFECT_BATTLER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
||||
@ -6338,6 +6339,7 @@ BattleScript_ToxicSpikesPoisoned::
|
||||
|
||||
BattleScript_StickyWebOnSwitchIn::
|
||||
savetarget
|
||||
saveattacker
|
||||
copybyte gBattlerTarget, sBATTLER
|
||||
setbyte sSTICKY_WEB_STAT_DROP, 1
|
||||
printstring STRINGID_STICKYWEBSWITCHIN
|
||||
@ -6356,6 +6358,7 @@ BattleScript_StickyWebOnSwitchInPrintStatMsg:
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
BattleScript_StickyWebOnSwitchInEnd:
|
||||
restoretarget
|
||||
restoreattacker
|
||||
return
|
||||
|
||||
BattleScript_PerishSongTakesLife::
|
||||
|
||||
@ -129,8 +129,14 @@ DOUBLE_BATTLE_TEST("Sticky Web has correct interactions with Mirror Armor - the
|
||||
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, BATTLER_OPPONENT);
|
||||
if (opponentSetUpper == 0) {
|
||||
MESSAGE("Foe Caterpie's Speed fell!");
|
||||
NONE_OF {
|
||||
MESSAGE("Foe Caterpie was caught in a Sticky Web!");
|
||||
}
|
||||
} else {
|
||||
MESSAGE("Foe Weedle's Speed fell!");
|
||||
NONE_OF {
|
||||
MESSAGE("Foe Weedle was caught in a Sticky Web!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user