* Daring Thief - Fixed a bug that caused a java exception.

This commit is contained in:
LevelX2 2014-05-25 14:56:48 +02:00
parent 2652316421
commit c3fe80af5b

View file

@ -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());
}