mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fixed parley count including players out of range (fixes #4757)
This commit is contained in:
parent
c9a6903253
commit
62869362e2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue