mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
Refactoring
See github line by line comments in 'File changed'
This commit is contained in:
parent
c0cf22bbf7
commit
f04ba151f7
52 changed files with 87 additions and 220 deletions
|
|
@ -42,7 +42,7 @@ import mage.players.Player;
|
|||
*/
|
||||
public class TargetPlayer extends TargetImpl {
|
||||
|
||||
protected FilterPlayer filter;
|
||||
protected final FilterPlayer filter;
|
||||
|
||||
public TargetPlayer() {
|
||||
this(1, 1, false);
|
||||
|
|
@ -169,10 +169,7 @@ public class TargetPlayer extends TargetImpl {
|
|||
@Override
|
||||
public boolean canTarget(UUID id, Game game) {
|
||||
Player player = game.getPlayer(id);
|
||||
if (player != null) {
|
||||
return filter.match(player, game);
|
||||
}
|
||||
return false;
|
||||
return player != null && filter.match(player, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue