mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Added a test.
This commit is contained in:
parent
b41c4822e9
commit
8e671fecaa
6 changed files with 134 additions and 48 deletions
|
|
@ -25,7 +25,6 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -39,13 +38,12 @@ import mage.game.permanent.Permanent;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class PreventAllDamageByAttachedEffect extends PreventionEffectImpl {
|
||||
|
||||
private final String attachedDescription;
|
||||
|
||||
public PreventAllDamageByAttachedEffect(Duration duration, String attachedDescription, boolean onlyCombat) {
|
||||
super(duration, Integer.MAX_VALUE, onlyCombat);
|
||||
super(duration, Integer.MAX_VALUE, onlyCombat, false);
|
||||
this.attachedDescription = attachedDescription;
|
||||
staticText = setText();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue