mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixes #4380
This commit is contained in:
parent
fef0ef83ec
commit
b7b0310969
1 changed files with 4 additions and 3 deletions
|
@ -27,10 +27,9 @@
|
||||||
*/
|
*/
|
||||||
package mage.cards.c;
|
package mage.cards.c;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.EntersBattlefieldAbility;
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||||
import mage.abilities.dynamicvalue.DynamicValue;
|
import mage.abilities.dynamicvalue.DynamicValue;
|
||||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
@ -42,6 +41,8 @@ import mage.constants.SubType;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author L_J
|
* @author L_J
|
||||||
|
@ -63,7 +64,7 @@ public class ChampionOfDusk extends CardImpl {
|
||||||
|
|
||||||
// When Champion of Dusk enters the battlefield, you draw X cards and you lose X life, where X is the number of Vampires you control.
|
// When Champion of Dusk enters the battlefield, you draw X cards and you lose X life, where X is the number of Vampires you control.
|
||||||
DynamicValue xCount = new PermanentsOnBattlefieldCount(filter);
|
DynamicValue xCount = new PermanentsOnBattlefieldCount(filter);
|
||||||
Ability ability = new EntersBattlefieldAbility(new DrawCardSourceControllerEffect(xCount));
|
Ability ability = new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(xCount));
|
||||||
ability.addEffect(new LoseLifeSourceControllerEffect(xCount));
|
ability.addEffect(new LoseLifeSourceControllerEffect(xCount));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue