mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Burrenton Forge-Tende - Fixed that every source could be selected..
This commit is contained in:
parent
59ae174d2b
commit
b583f616bf
1 changed files with 3 additions and 4 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue