* Burrenton Forge-Tende - Fixed that every source could be selected..

This commit is contained in:
LevelX2 2015-06-04 14:12:52 +02:00
parent 59ae174d2b
commit b583f616bf

View file

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