Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit 09e138c

Browse files
committed
Fix bug
1 parent be2b9bf commit 09e138c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VectorNetworkProject/TheMix/game/corepvp/blue/BlueCoreManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function getHP(): int
5151
public static function reduceHP(int $hp, Player $player): void
5252
{
5353
self::$hp -= $hp;
54-
if (self::getHP() === 0) {
54+
if (self::getHP() <= 0) {
5555
$event = new GameWinEvent(GameWinEvent::WIN_RED, $player);
5656
Server::getInstance()->getPluginManager()->callEvent($event);
5757
if ($event->isCancelled()) {

0 commit comments

Comments
 (0)