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

Commit be2b9bf

Browse files
authored
Merge pull request #11 from RedstoneAlmeida/patch-1
Fix Health is down not Win
2 parents c8b25d2 + bea5fe5 commit be2b9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VectorNetworkProject/TheMix/game/corepvp/red/RedCoreManager.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_BLUE, $player);
5656
Server::getInstance()->getPluginManager()->callEvent($event);
5757
if ($event->isCancelled()) {

0 commit comments

Comments
 (0)