@@ -1082,7 +1082,7 @@ void shouldDieWhenRunningAwayWithSpeedPenalty() {
1082
1082
@ Test
1083
1083
void spiderMineShouldNotAttackBuilding () {
1084
1084
// GIVEN
1085
- simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ));
1085
+ simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ). setBurrowed ( true ) );
1086
1086
simulator .addAgentB (factory .of (UnitType .Zerg_Sunken_Colony ));
1087
1087
1088
1088
// WHEN
@@ -1096,7 +1096,7 @@ void spiderMineShouldNotAttackBuilding() {
1096
1096
@ Test
1097
1097
void spiderMineShouldAttackWithinSeekRange () {
1098
1098
// GIVEN
1099
- simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ));
1099
+ simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ). setBurrowed ( true ) );
1100
1100
simulator .addAgentB (factory .of (UnitType .Zerg_Zergling ));
1101
1101
1102
1102
// WHEN
@@ -1110,7 +1110,7 @@ void spiderMineShouldAttackWithinSeekRange() {
1110
1110
@ Test
1111
1111
void spiderMineShouldNotAttackOutsideOfSeekRange () {
1112
1112
// GIVEN
1113
- simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ));
1113
+ simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ). setBurrowed ( true ) );
1114
1114
simulator .addAgentB (factory .of (UnitType .Zerg_Zergling ).setX (128 ));
1115
1115
1116
1116
// WHEN
@@ -1124,10 +1124,24 @@ void spiderMineShouldNotAttackOutsideOfSeekRange() {
1124
1124
assertThat (simulator .getAgentsB ()).isNotEmpty ();
1125
1125
}
1126
1126
1127
+ @ Test
1128
+ void spiderMineShouldDoSplashDamage () {
1129
+ // GIVEN
1130
+ simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ).setBurrowed (true ));
1131
+ simulator .addAgentB (factory .of (UnitType .Zerg_Zergling ).setX (16 ));
1132
+ simulator .addAgentB (factory .of (UnitType .Zerg_Zergling ).setX (16 ));
1133
+
1134
+ // WHEN
1135
+ simulator .simulate (20 );
1136
+
1137
+ // THEN
1138
+ assertThat (simulator .getAgentsB ()).isEmpty ();
1139
+ }
1140
+
1127
1141
@ Test
1128
1142
void spiderMineShouldNotAttackWorker () {
1129
1143
// GIVEN
1130
- simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ));
1144
+ simulator .addAgentA (factory .of (UnitType .Terran_Vulture_Spider_Mine ).setDetected (false ). setBurrowed ( true ) );
1131
1145
simulator .addAgentB (factory .of (UnitType .Zerg_Drone ));
1132
1146
simulator .addAgentB (factory .of (UnitType .Terran_SCV ));
1133
1147
simulator .addAgentB (factory .of (UnitType .Protoss_Probe ));
0 commit comments