kep-hack/engine/battle/move_effects/leech_seed.asm
Llinos Evans 7ed5c0ae95 1/256 Text and other transparency enhancements
- In the event of a 1/256 miss, the game will now state the Pokemon evaded the attack to signify its occurrence. This is part of an effort to make misses, overall, more transparent.
- Battle Debug now loads some items to assist with testing.
- Misleading Guard Spec message in Celadon has been changed to refer to X Special, which it was actually describing.
- Removed "it can spook the target sometimes" text when getting the TM for Rock Slide, because it's a LIE
2023-06-12 14:41:13 +01:00

42 lines
792 B
NASM

LeechSeedEffect_:
callfar MoveHitTest
ld a, [wMoveMissed]
and a
jr nz, .moveMissed
ld hl, wEnemyBattleStatus2
ld de, wEnemyMonType1
ldh a, [hWhoseTurn]
and a
jr z, .leechSeedEffect
ld hl, wPlayerBattleStatus2
ld de, wBattleMonType1
.leechSeedEffect
; miss if the target is grass-type or already seeded
ld a, [de]
cp GRASS
jr z, .moveMissed
inc de
ld a, [de]
cp GRASS
jr z, .moveMissed
bit SEEDED, [hl]
jr nz, .moveMissed
set SEEDED, [hl]
callfar PlayCurrentMoveAnimation
ld hl, WasSeededText
jp PrintText
.moveMissed
ld c, 50
call DelayFrames
ld hl, LeechFailedText
jp PrintText
WasSeededText:
text_far _WasSeededText
text_end
; This messed up if I farcalled AttackMissedText, so we're doing this instead.
LeechFailedText:
text_far _ButItFailedText
text_end