mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +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) {
|
||||
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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue