* 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) { public PreventDamageBySourceEffect(FilterObject filterObject) {
super(Duration.EndOfTurn); super(Duration.EndOfTurn);
if (filterObject.getMessage().equals("a")) { if (!filterObject.getMessage().endsWith("source")) {
this.target = new TargetSource(new FilterObject("source")); filterObject.setMessage(filterObject.getMessage() + " source");
} else {
this.target = new TargetSource(new FilterObject(filterObject.getMessage() + " source"));
} }
this.target = new TargetSource(filterObject);
staticText = "Prevent all damage " + filterObject.getMessage() + " source of your choice would deal this turn"; staticText = "Prevent all damage " + filterObject.getMessage() + " source of your choice would deal this turn";
} }