mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Master of Diversion - Fixed NPE because of using wrong id (Fixes #284).
This commit is contained in:
parent
6a23e957e0
commit
489a727f5c
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class MasterOfDiversion extends CardImpl<MasterOfDiversion> {
|
|||
if (ability.getAbilityType().equals(AbilityType.TRIGGERED)) {
|
||||
ability.getTargets().clear();
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature defending player controls");
|
||||
UUID defenderId = game.getCombat().getDefendingPlayer(ability.getControllerId());
|
||||
UUID defenderId = game.getCombat().getDefendingPlayer(ability.getSourceId());
|
||||
filter.add(new ControllerIdPredicate(defenderId));
|
||||
TargetCreaturePermanent target = new TargetCreaturePermanent(filter);
|
||||
target.setRequired(true);
|
||||
|
|
Loading…
Reference in a new issue