public Mana computeMana(String color, Game game, Ability source){
this.computedMana.clear();
if (color !=null && !color.isEmpty()) {
switch (color) {
case "Red":
computedMana.setRed(new DevotionCount(ColoredManaSymbol.R).calculate(game, source, this));
break;
case "Blue":
computedMana.setBlue(new DevotionCount(ColoredManaSymbol.U).calculate(game, source, this));
break;
case "White":
computedMana.setWhite(new DevotionCount(ColoredManaSymbol.W).calculate(game, source, this));
break;
case "Black":
computedMana.setBlack(new DevotionCount(ColoredManaSymbol.B).calculate(game, source, this));
break;
case "Green":
computedMana.setGreen(new DevotionCount(ColoredManaSymbol.G).calculate(game, source, this));
break;
}
}
return computedMana;
}