mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 03:39:54 -08:00
- Added Rith's Charm
Also improved string generation for selecting a source of PreventDamageBySourceEffect
This commit is contained in:
parent
9c5a98b637
commit
2a2b828870
3 changed files with 131 additions and 1 deletions
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue