fixed parley count including players out of range (fixes #4757)

This commit is contained in:
Evan Kranzler 2018-04-14 21:04:25 -04:00
parent c9a6903253
commit 62869362e2

View file

@ -62,7 +62,7 @@ public class ParleyCount implements DynamicValue, MageSingleton {
int parleyValue = 0;
MageObject sourceObject = game.getObject(sourceAbility.getSourceId());
if (sourceObject != null) {
for (UUID playerId : game.getState().getPlayerList(sourceAbility.getControllerId())) {
for (UUID playerId : game.getState().getPlayersInRange(sourceAbility.getControllerId(), game)) {
Player player = game.getPlayer(playerId);
if (player != null) {
Card card = player.getLibrary().getFromTop(game);