Skip to content

Commit ed0438a

Browse files
committed
fix ticket-1006
1 parent 0184aa1 commit ed0438a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Module/Ship/Action/TholianWeb/ImplodeTholianWeb.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Stu\Module\Ship\Lib\ShipLoaderInterface;
1717
use Stu\Module\Ship\Lib\TholianWebUtilInterface;
1818
use Stu\Module\Spacecraft\Lib\Battle\Weapon\TholianWebWeaponPhaseInterface;
19+
use Stu\Module\Spacecraft\Lib\SpacecraftRemoverInterface;
1920
use Stu\Module\Spacecraft\View\ShowSpacecraft\ShowSpacecraft;
2021

2122
final class ImplodeTholianWeb implements ActionControllerInterface
@@ -25,10 +26,11 @@ final class ImplodeTholianWeb implements ActionControllerInterface
2526
private LoggerUtilInterface $loggerUtil;
2627

2728
public function __construct(
28-
private ShipLoaderInterface $shipLoader,
29-
private TholianWebUtilInterface $tholianWebUtil,
30-
private PrivateMessageSenderInterface $privateMessageSender,
31-
private TholianWebWeaponPhaseInterface $tholianWebWeaponPhase,
29+
private readonly ShipLoaderInterface $shipLoader,
30+
private readonly TholianWebUtilInterface $tholianWebUtil,
31+
private readonly PrivateMessageSenderInterface $privateMessageSender,
32+
private readonly TholianWebWeaponPhaseInterface $tholianWebWeaponPhase,
33+
private readonly SpacecraftRemoverInterface $spacecraftRemover,
3234
LoggerUtilFactoryInterface $loggerUtilFactory
3335
) {
3436
$this->loggerUtil = $loggerUtilFactory->getLoggerUtil();
@@ -103,6 +105,7 @@ public function handle(GameControllerInterface $game): void
103105
$game->getInfo()->addInformationWrapper($informations);
104106
}
105107

108+
$this->spacecraftRemover->remove($web);
106109

107110
$this->loggerUtil->log('10');
108111

0 commit comments

Comments
 (0)