super(ownerId, 6, "Riot Control", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{W}");
this.expansionSetCode = "DGM";
this.color.setWhite(true);
// Gain 1 life for each creature your opponents control. Prevent all damage that would be dealt to you this turn.
this.getSpellAbility().addEffect(new GainLifeEffect(new PermanentsOnBattlefieldCount(filter)));
this.getSpellAbility().addEffect(new PreventAllDamageToControllerEffect(Duration.EndOfTurn));
}