* Raid - Fixed that attacking with Meandering Towershell does fulfill the Raid condition.

This commit is contained in:
LevelX2 2015-04-12 21:50:18 +02:00
parent fef57af896
commit 0ae89c453c
2 changed files with 3 additions and 4 deletions

View file

@ -42,7 +42,6 @@ import mage.constants.Rarity;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.events.GameEvent.EventType;
import mage.game.permanent.Permanent;
import mage.players.Player;
@ -70,12 +69,12 @@ public class MeanderingTowershell extends CardImpl {
this.expansionSetCode = "KTK";
this.subtype.add("Turtle");
this.color.setGreen(true);
this.power = new MageInt(5);
this.toughness = new MageInt(9);
// Islandwalk
this.addAbility(new IslandwalkAbility());
// Whenever Meandering Towershell attacks, exile it.
// Return it to the battlefield under your control tapped and attacking
// at the beginning of the next declare attackers step on your next turn.

View file

@ -65,9 +65,9 @@ public class PlayerAttackedWatcher extends Watcher {
@Override
public void watch(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.DECLARED_ATTACKERS) {
if (event.getType() == GameEvent.EventType.ATTACKER_DECLARED) {
int numberAttackers = playerAttacked.containsKey(event.getPlayerId()) ? playerAttacked.get(event.getPlayerId()) : 0;
playerAttacked.put(event.getPlayerId(), numberAttackers + game.getCombat().getAttackers().size());
playerAttacked.put(event.getPlayerId(), numberAttackers + 1);
}
}