mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-18 20:04:28 +00:00
More type work
This commit is contained in:
@ -7,8 +7,7 @@ class PartialPlay
|
||||
public static function getPartialPlayPercentage(Player $player): float
|
||||
{
|
||||
// If the player doesn't support the interface, assume 1.0 == 100%
|
||||
$supportsPartialPlay = $player instanceof ISupportPartialPlay;
|
||||
if (! $supportsPartialPlay) {
|
||||
if (! $player instanceof ISupportPartialPlay) {
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user