I'm trying to get my hero defence working, but for some reason my spawn triggers arent working correctly. I want players to have ample time destroying invaders and for the enemy to spawn more only if all enemy units are destroyed. My code is the following:
Code:
Game - Display to (All players) for 20.00 seconds the text: |cffffcc00~Phase 2~
Sound - Play GoodJob <gen>
Unit - Create 15 Greater Imp for Player 9 (Gray) at (Center of Spawn top <gen>) facing Default building facing degrees
Unit Group - Add all units of (Last created unit group) to Monsters
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of Monsters are dead) Equal to True
Then - Actions
Trigger - Run Start phase 3 <gen> (checking conditions)
Else - Actions
Do nothing