diff options
author | ElectroDeoxys <ElectroDeoxys@gmail.com> | 2020-05-11 10:30:31 +0100 |
---|---|---|
committer | ElectroDeoxys <ElectroDeoxys@gmail.com> | 2020-12-16 00:18:20 +0000 |
commit | a3d2aee4fb7427393ae0d28a558488af493bb1b3 (patch) | |
tree | 3bae789a6ef872d5bf73439ab5b421545113aaef /src/engine/effect_functions.asm | |
parent | a45b7780623fcc8b1d5af8863f07786a8f74a9e6 (diff) |
NidoranM Horn Hazard effect
Diffstat (limited to 'src/engine/effect_functions.asm')
-rw-r--r-- | src/engine/effect_functions.asm | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/engine/effect_functions.asm b/src/engine/effect_functions.asm index 8075a71..2123fd8 100644 --- a/src/engine/effect_functions.asm +++ b/src/engine/effect_functions.asm @@ -1339,7 +1339,27 @@ NidoranFCallForFamily_PutInPlayAreaEffect: ; 2ca6e (b:4a6e) ret ; 0x2ca8e - INCROM $2ca8e, $2cbfb +HornHazard_AIEffect: ; 2ca8e (b:4a8e) + ld a, 15 + lb de, 0, 30 + jp StoreAIDamageInfo +; 0x2ca96 + +HornHazard_Failure50PercentEffect: ; 2ca96 (b:4a96) + ldtx de, DamageCheckIfTailsNoDamageText + call TossCoin_BankB + jr c, .heads + xor a + call StoreDamageInfo + call SetWasUnsuccessful + ret +.heads + ld a, $01 + ld [wLoadedMoveAnimation], a + ret +; 0x2caac + + INCROM $2caac, $2cbfb Func_2cbfb: ; 2cbfb (b:4bfb) ldh a, [hAIEnergyTransPlayAreaLocation] |