public class GainProtectionFromTypeTargetEffect extends GainAbilityTargetEffect {
private String typeName;
public GainProtectionFromTypeTargetEffect(Duration duration, FilterCard protectionFrom) {
super(new ProtectionAbility(new FilterCard()), duration);
((ProtectionAbility)ability).setFilter(protectionFrom);
typeName = protectionFrom.getMessage();
staticText = "Target creature gains protection from " + typeName + " " + duration.toString();
}