We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10eb4d2 commit 4c0fad9Copy full SHA for 4c0fad9
engine/battle/abilities.asm
@@ -834,6 +834,24 @@ StaticAbility:
834
AfflictStatusAbility:
835
ld b, 1
836
_AfflictStatusAbility:
837
+ ; Shield Dust+Covert Cloak will protect against attacker's status ability.
838
+ inc b
839
+ dec b
840
+ jr nz, .enemy_ability
841
+ call GetOpponentAbility
842
+ cp SHIELD_DUST
843
+ ret z
844
+
845
+ push hl
846
+ push bc
847
+ call GetOpponentItemAfterUnnerve
848
+ ld a, b
849
+ cp HELD_COVERT_CLOAK
850
+ pop bc
851
+ pop hl
852
853
854
+.enemy_ability
855
; Only works 30% of the time.
856
ld a, 10
857
call BattleRandomRange
0 commit comments