mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Daring Thief - Fixed a bug that caused a java exception.
This commit is contained in:
parent
2652316421
commit
c3fe80af5b
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class TargetControlledPermanentSharingOpponentPermanentCardType extends TargetCo
|
|||
Player controller = game.getPlayer(sourceControllerId);
|
||||
Set<CardType> cardTypes = new HashSet<>();
|
||||
if (controller != null) {
|
||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(sourceId, game)) {
|
||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(sourceControllerId, game)) {
|
||||
if (controller.hasOpponent(permanent.getControllerId(), game)) {
|
||||
cardTypes.addAll(permanent.getCardType());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue