summaryrefslogtreecommitdiff
path: root/engine/battle/effect_commands/sandstorm.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/effect_commands/sandstorm.asm')
-rw-r--r--engine/battle/effect_commands/sandstorm.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/engine/battle/effect_commands/sandstorm.asm b/engine/battle/effect_commands/sandstorm.asm
new file mode 100644
index 000000000..27b8e8e2c
--- /dev/null
+++ b/engine/battle/effect_commands/sandstorm.asm
@@ -0,0 +1,19 @@
+BattleCommand_StartSandstorm: ; 376f8
+; startsandstorm
+
+ ld a, [Weather]
+ cp WEATHER_SANDSTORM
+ jr z, .failed
+
+ ld a, WEATHER_SANDSTORM
+ ld [Weather], a
+ ld a, 5
+ ld [WeatherCount], a
+ call AnimateCurrentMove
+ ld hl, SandstormBrewedText
+ jp StdBattleTextBox
+
+.failed
+ call AnimateFailedMove
+ jp PrintButItFailed
+; 37718