mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[PLS] Dark Suspicions
This commit is contained in:
parent
e31480cb21
commit
6b36899fc9
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class DarkSuspicionsEffect extends OneShotEffect {
|
||||||
|
|
||||||
public DarkSuspicionsEffect() {
|
public DarkSuspicionsEffect() {
|
||||||
super(Outcome.LoseLife);
|
super(Outcome.LoseLife);
|
||||||
staticText = "that player loses X life, where X is the number of cards in that player's hand minus the number of cards in your hand.";
|
staticText = "that player loses X life, where X is the number of cards in that player's hand minus the number of cards in your hand";
|
||||||
}
|
}
|
||||||
|
|
||||||
public DarkSuspicionsEffect(final mage.cards.d.DarkSuspicionsEffect effect) {
|
public DarkSuspicionsEffect(final mage.cards.d.DarkSuspicionsEffect effect) {
|
||||||
|
@ -83,7 +83,7 @@ class DarkSuspicionsEffect extends OneShotEffect {
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
Player opponent = game.getPlayer(this.getTargetPointer().getFirst(game, source));
|
Player opponent = game.getPlayer(this.getTargetPointer().getFirst(game, source));
|
||||||
if (opponent != null) {
|
if (controller != null && opponent != null) {
|
||||||
int xValue = opponent.getHand().size() - controller.getHand().size();
|
int xValue = opponent.getHand().size() - controller.getHand().size();
|
||||||
if (xValue > 0) {
|
if (xValue > 0) {
|
||||||
opponent.loseLife(xValue, game, false);
|
opponent.loseLife(xValue, game, false);
|
||||||
|
|
Loading…
Reference in a new issue