mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed a possible NPE in hasProperty in the Player class.
This commit is contained in:
@@ -2439,7 +2439,7 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (property.startsWith("Chosen")) {
|
} else if (property.startsWith("Chosen")) {
|
||||||
if (!source.getChosenPlayer().equals(this)) {
|
if (source.getChosenPlayer() == null || !source.getChosenPlayer().equals(this)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user