- Fixed Rivals' Duel

This commit is contained in:
Jeff 2019-02-13 10:19:07 -06:00
parent a7acaefb4a
commit ac4e51ce0d
2 changed files with 12 additions and 4 deletions

View file

@ -35,7 +35,8 @@ public class TargetCreaturePermanentWithDifferentTypes extends TargetCreaturePer
for (Object object : getTargets()) {
UUID targetId = (UUID) object;
Permanent selectedCreature = game.getPermanent(targetId);
if (!creature.getId().equals(selectedCreature.getId())) {
if (selectedCreature != null
&& !creature.getId().equals(selectedCreature.getId())) {
if (creature.shareSubtypes(selectedCreature, game)) {
return false;
}