Path: blob/master/engine/battle/move_effects/reflect_light_screen.asm
1271 views
ReflectLightScreenEffect_:1ld hl, wPlayerBattleStatus32ld de, wPlayerMoveEffect3ldh a, [hWhoseTurn]4and a5jr z, .reflectLightScreenEffect6ld hl, wEnemyBattleStatus37ld de, wEnemyMoveEffect8.reflectLightScreenEffect9ld a, [de]10cp LIGHT_SCREEN_EFFECT11jr nz, .reflect12bit HAS_LIGHT_SCREEN_UP, [hl] ; is mon already protected by light screen?13jr nz, .moveFailed14set HAS_LIGHT_SCREEN_UP, [hl] ; mon is now protected by light screen15ld hl, LightScreenProtectedText16jr .playAnim17.reflect18bit HAS_REFLECT_UP, [hl] ; is mon already protected by reflect?19jr nz, .moveFailed20set HAS_REFLECT_UP, [hl] ; mon is now protected by reflect21ld hl, ReflectGainedArmorText22.playAnim23push hl24ld hl, PlayCurrentMoveAnimation25call EffectCallBattleCore26pop hl27jp PrintText28.moveFailed29ld c, 5030call DelayFrames31ld hl, PrintButItFailedText_32jp EffectCallBattleCore3334LightScreenProtectedText:35text_far _LightScreenProtectedText36text_end3738ReflectGainedArmorText:39text_far _ReflectGainedArmorText40text_end4142EffectCallBattleCore:43ld b, BANK(BattleCore)44jp Bankswitch454647