this.color.setGreen(true);
this.color.setWhite(true);
// You gain X life if {G} was spent to cast Dawnglow Infusion and X life if {W} was spent to cast it.
DynamicValue xValue = new ManacostVariableValue();
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
new GainLifeEffect(xValue),
new ManaWasSpentCondition(ColoredManaSymbol.G), "You gain X life if {G} was spent to cast {this}"));
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
new GainLifeEffect(xValue),
new ManaWasSpentCondition(ColoredManaSymbol.W), " And X life if {W} was spent to cast it"));
this.addInfo("Info1", "<i>(Do both if {G}{W} was spent.)</i>");
this.addWatcher(new ManaSpentToCastWatcher());