- Added Rith's Charm

Also improved string generation for selecting a source of
PreventDamageBySourceEffect
This commit is contained in:
FenrisulfrX 2015-03-30 18:42:45 -03:00
parent 9c5a98b637
commit 2a2b828870
3 changed files with 131 additions and 1 deletions

View file

@ -54,7 +54,11 @@ public class PreventDamageBySourceEffect extends PreventionEffectImpl {
public PreventDamageBySourceEffect(FilterObject filterObject) {
super(Duration.EndOfTurn);
this.target = new TargetSource(filterObject);
if (filterObject.getMessage().equals("a")) {
this.target = new TargetSource(new FilterObject("source"));
} else {
this.target = new TargetSource(new FilterObject(filterObject.getMessage() + " source"));
}
staticText = "Prevent all damage " + filterObject.getMessage() + " source of your choice would deal this turn";
}