Skip to content

Commit

Permalink
combat_simulator.php: remove improper references
Browse files Browse the repository at this point in the history
  • Loading branch information
hemberger committed Apr 26, 2021
1 parent c4688ed commit b3ae2c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engine/Default/combat_simulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@
if (isset($_REQUEST['death_run'])) {
while (count($realAttackers) > 0 && count($realDefenders) > 0) {
runAnAttack($realAttackers, $realDefenders);
foreach ($realAttackers as $key => &$teamPlayer) {
foreach ($realAttackers as $key => $teamPlayer) {
if ($teamPlayer->isDead()) {
unset($realAttackers[$key]);
}
} unset($teamPlayer);
foreach ($realDefenders as $key => &$teamPlayer) {
}
foreach ($realDefenders as $key => $teamPlayer) {
if ($teamPlayer->isDead()) {
unset($realDefenders[$key]);
}
} unset($teamPlayer);
}
}
}
}
Expand Down

0 comments on commit b3ae2c7

Please sign in to comment.