mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Attempting to fix compile errors in forge-gui (please review, not sure if that's the value of the source parameter needed for addCounter in this location)
This commit is contained in:
@@ -409,7 +409,7 @@ public class HumanPlay {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
source.addCounter(counterType, amount, false);
|
source.addCounter(counterType, amount, source, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
CardCollectionView list = p.getGame().getCardsIn(ZoneType.Battlefield);
|
CardCollectionView list = p.getGame().getCardsIn(ZoneType.Battlefield);
|
||||||
@@ -427,7 +427,7 @@ public class HumanPlay {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Card selected = inp.getFirstSelected();
|
Card selected = inp.getFirstSelected();
|
||||||
selected.addCounter(counterType, 1, false);
|
selected.addCounter(counterType, 1, source, false);
|
||||||
amount--;
|
amount--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1674,7 +1674,7 @@ public class PlayerControllerHuman
|
|||||||
final Integer count = getGui().getInteger("How many counters?", 1, Integer.MAX_VALUE, 10);
|
final Integer count = getGui().getInteger("How many counters?", 1, Integer.MAX_VALUE, 10);
|
||||||
if (count == null) { return; }
|
if (count == null) { return; }
|
||||||
|
|
||||||
card.addCounter(counter, count, false);
|
card.addCounter(counter, count, card, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
Reference in New Issue
Block a user