mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
Fixed Issue#49: Craterhoof Behemoth calculates +x/+x wrong
This commit is contained in:
parent
3d1bb8e1ab
commit
15371eab3f
1 changed files with 9 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
package mage.sets.avacynrestored;
|
package mage.sets.avacynrestored;
|
||||||
|
|
||||||
import java.util.UUID;
|
import mage.Constants;
|
||||||
import mage.Constants.CardType;
|
import mage.Constants.CardType;
|
||||||
import mage.Constants.Duration;
|
import mage.Constants.Duration;
|
||||||
import mage.Constants.Rarity;
|
import mage.Constants.Rarity;
|
||||||
|
@ -41,6 +41,9 @@ import mage.abilities.keyword.HasteAbility;
|
||||||
import mage.abilities.keyword.TrampleAbility;
|
import mage.abilities.keyword.TrampleAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
|
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -50,6 +53,10 @@ public class CraterhoofBehemoth extends CardImpl<CraterhoofBehemoth> {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(new ControllerPredicate(Constants.TargetController.YOU));
|
||||||
|
}
|
||||||
|
|
||||||
public CraterhoofBehemoth(UUID ownerId) {
|
public CraterhoofBehemoth(UUID ownerId) {
|
||||||
super(ownerId, 172, "Craterhoof Behemoth", Rarity.MYTHIC, new CardType[]{CardType.CREATURE}, "{5}{G}{G}{G}");
|
super(ownerId, 172, "Craterhoof Behemoth", Rarity.MYTHIC, new CardType[]{CardType.CREATURE}, "{5}{G}{G}{G}");
|
||||||
this.expansionSetCode = "AVR";
|
this.expansionSetCode = "AVR";
|
||||||
|
@ -60,6 +67,7 @@ public class CraterhoofBehemoth extends CardImpl<CraterhoofBehemoth> {
|
||||||
this.toughness = new MageInt(5);
|
this.toughness = new MageInt(5);
|
||||||
|
|
||||||
this.addAbility(HasteAbility.getInstance());
|
this.addAbility(HasteAbility.getInstance());
|
||||||
|
|
||||||
// When Craterhoof Behemoth enters the battlefield, creatures you control gain trample and get +X/+X until end of turn, where X is the number of creatures you control.
|
// When Craterhoof Behemoth enters the battlefield, creatures you control gain trample and get +X/+X until end of turn, where X is the number of creatures you control.
|
||||||
Ability ability = new EntersBattlefieldTriggeredAbility(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, filter));
|
Ability ability = new EntersBattlefieldTriggeredAbility(new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, filter));
|
||||||
PermanentsOnBattlefieldCount x = new PermanentsOnBattlefieldCount(filter);
|
PermanentsOnBattlefieldCount x = new PermanentsOnBattlefieldCount(filter);
|
||||||
|
|
Loading…
Reference in a new issue