ref: b3324b175e58ce9a8e2f49d1df64ec71f02e9605
dir: /engine/battle/14.asm/
Func_525af: ; 525af (14:65af) ld a, [hTilesetType] ld [wd0d4], a xor a ld [wcd6a], a ld [wBattleResult], a ld hl, wcc2b ld [hli], a ld [hli], a ld [hli], a ld [hl], a ld [wListScrollOffset], a ; wcc36 ld [wCriticalHitOrOHKO], a ld [wBattleMonSpecies], a ld [wPartyGainExpFlags], a ld [wPlayerMonNumber], a ; wPlayerMonNumber ld [wEscapedFromBattle], a ld [wMapPalOffset], a ld hl, wcf1d ld [hli], a ld [hl], a ld hl, wccd3 ld b, $3c .asm_525e1 ld [hli], a dec b jr nz, .asm_525e1 inc a ld [wccd9], a ld a, [W_CURMAP] ; W_CURMAP cp SAFARI_ZONE_EAST jr c, .asm_525f9 cp SAFARI_ZONE_REST_HOUSE_1 jr nc, .asm_525f9 ld a, $2 ld [W_BATTLETYPE], a ; wd05a .asm_525f9 ld hl, PlayBattleMusic ld b, BANK(PlayBattleMusic) jp Bankswitch ParalyzeEffect_: ; 52601 (14:6601) ld hl, wEnemyMonStatus ; wcfe9 ld de, W_PLAYERMOVETYPE ; wcfd5 ld a, [H_WHOSETURN] ; $fff3 and a jp z, .asm_52613 ld hl, wBattleMonStatus ; wBattleMonStatus ld de, W_ENEMYMOVETYPE ; wcfcf .asm_52613 ld a, [hl] and a jr nz, .asm_52659 ld a, [de] cp EVASION_DOWN1_EFFECT jr nz, .asm_5262a ld b, h ld c, l inc bc ld a, [bc] cp $4 jr z, .asm_52666 inc bc ld a, [bc] cp $4 jr z, .asm_52666 .asm_5262a push hl callab MoveHitTest pop hl ld a, [W_MOVEMISSED] ; W_MOVEMISSED and a jr nz, .asm_52659 set 6, [hl] callab QuarterSpeedDueToParalysis ld c, $1e call DelayFrames callab Func_3fba8 ld hl, PrintMayNotAttackText ld b, BANK(PrintMayNotAttackText) jp Bankswitch .asm_52659 ld c, $32 call DelayFrames ld hl, PrintDidntAffectText ld b, BANK(PrintDidntAffectText) jp Bankswitch .asm_52666 ld c, $32 call DelayFrames ld hl, PrintDoesntAffectText ld b, BANK(PrintDoesntAffectText) jp Bankswitch