* Your opponents can't cast - fixed game error on some usage (NPE fix)

This commit is contained in:
Oleg Agafonov 2023-03-25 15:14:02 +04:00
parent 22552ede47
commit a7ab25a5b5

View file

@ -65,9 +65,9 @@ public class CantCastOrActivateOpponentsYourTurnEffect extends ContinuousRuleMod
case ACTIVATE_ABILITY: case ACTIVATE_ABILITY:
Permanent permanent = game.getPermanent(event.getSourceId()); Permanent permanent = game.getPermanent(event.getSourceId());
return permanent != null return permanent != null
&& permanent.isArtifact(game) && (permanent.isArtifact(game)
|| permanent.isCreature(game) || permanent.isCreature(game)
|| permanent.isEnchantment(game); || permanent.isEnchantment(game));
} }
return false; return false;
} }