forked from External/mage
* Some changes to EnterTheBattlefield events, some other fixes (fixes #2765).
This commit is contained in:
parent
dd810f2678
commit
75cbfdf3b9
24 changed files with 562 additions and 319 deletions
|
|
@ -30,6 +30,7 @@ package mage.abilities.common;
|
|||
import mage.abilities.StaticAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.EntersBattlefieldEffect;
|
||||
import mage.constants.EnterEventType;
|
||||
import mage.constants.Zone;
|
||||
|
||||
/**
|
||||
|
|
@ -39,14 +40,18 @@ import mage.constants.Zone;
|
|||
public class AsEntersBattlefieldAbility extends StaticAbility {
|
||||
|
||||
public AsEntersBattlefieldAbility(Effect effect) {
|
||||
super(Zone.ALL, new EntersBattlefieldEffect(effect));
|
||||
this(effect, null, EnterEventType.OTHER);
|
||||
}
|
||||
|
||||
public AsEntersBattlefieldAbility(Effect effect, String text) {
|
||||
super(Zone.ALL, new EntersBattlefieldEffect(effect, text));
|
||||
this(effect, text, EnterEventType.OTHER);
|
||||
}
|
||||
|
||||
public AsEntersBattlefieldAbility(AsEntersBattlefieldAbility ability) {
|
||||
public AsEntersBattlefieldAbility(Effect effect, String text, EnterEventType enterEventType) {
|
||||
super(Zone.ALL, new EntersBattlefieldEffect(effect, null, text, true, false, enterEventType));
|
||||
}
|
||||
|
||||
public AsEntersBattlefieldAbility(final AsEntersBattlefieldAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue