mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Some minor changes.
This commit is contained in:
parent
55917ccc63
commit
c70b548464
3 changed files with 14 additions and 12 deletions
|
@ -32,6 +32,7 @@ import mage.MageInt;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesCreatureTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.MenaceAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -77,7 +78,7 @@ public class PlagueBelcher extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Whenever another Zombie you control dies, each opponent loses 1 life.
|
||||
this.addAbility(new DiesCreatureTriggeredAbility(new LoseLifeOpponentsEffect(), false, filter));
|
||||
this.addAbility(new DiesCreatureTriggeredAbility(new LoseLifeOpponentsEffect(1), false, filter));
|
||||
}
|
||||
|
||||
public PlagueBelcher(final PlagueBelcher card) {
|
||||
|
|
|
@ -28,14 +28,14 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* Battlefield checking condition. This condition can decorate other conditions
|
||||
* Battlefield checking condition. This condition can decorate other conditions
|
||||
* as well as be used standalone.
|
||||
*
|
||||
* @author nantuko
|
||||
|
@ -63,9 +63,10 @@ public class PermanentsOnTheBattlefieldCondition implements Condition {
|
|||
}
|
||||
|
||||
/**
|
||||
* Applies a filter, a {@link ComparisonType}, and count to permanents on the
|
||||
* battlefield when checking the condition during the
|
||||
* {@link #apply(mage.game.Game, mage.abilities.Ability) apply} method invocation.
|
||||
* Applies a filter, a {@link ComparisonType}, and count to permanents on
|
||||
* the battlefield when checking the condition during the
|
||||
* {@link #apply(mage.game.Game, mage.abilities.Ability) apply} method
|
||||
* invocation.
|
||||
*
|
||||
* @param filter
|
||||
* @param type
|
||||
|
@ -83,10 +84,10 @@ public class PermanentsOnTheBattlefieldCondition implements Condition {
|
|||
}
|
||||
|
||||
/**
|
||||
* Applies a filter, a {@link ComparisonType}, and count to permanents on the
|
||||
* battlefield and calls the decorated condition to see if it
|
||||
* {@link #apply(mage.game.Game, mage.abilities.Ability) applies}
|
||||
* as well. This will force both conditions to apply for this to be true.
|
||||
* Applies a filter, a {@link ComparisonType}, and count to permanents on
|
||||
* the battlefield and calls the decorated condition to see if it
|
||||
* {@link #apply(mage.game.Game, mage.abilities.Ability) applies} as well.
|
||||
* This will force both conditions to apply for this to be true.
|
||||
*
|
||||
* @param filter
|
||||
* @param type
|
||||
|
@ -100,7 +101,7 @@ public class PermanentsOnTheBattlefieldCondition implements Condition {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
boolean conditionApplies = false;
|
||||
boolean conditionApplies;
|
||||
|
||||
FilterPermanent localFilter = filter.copy();
|
||||
if (onlyControlled) {
|
||||
|
|
|
@ -75,7 +75,7 @@ public class UserData implements Serializable {
|
|||
this.autoOrderTrigger = userData.autoOrderTrigger;
|
||||
this.useFirstManaAbility = userData.useFirstManaAbility;
|
||||
this.userIdStr = userData.userIdStr;
|
||||
// todo: why we don't copy user stats here?
|
||||
// todo: why we don't update user stats here? => can't be updated from client side
|
||||
}
|
||||
|
||||
public static UserData getDefaultUserDataView() {
|
||||
|
|
Loading…
Reference in a new issue