Some minor framework changes.

This commit is contained in:
LevelX2 2014-12-12 14:25:29 +01:00
parent 00281f0b10
commit 6dd033bd8f
4 changed files with 11 additions and 12 deletions

View file

@ -27,8 +27,6 @@
*/
package mage.sets.gatecrash;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;

View file

@ -70,14 +70,14 @@ public class TapForManaAllTriggeredManaAbility extends TriggeredManaAbility {
ManaEvent mEvent = (ManaEvent) event;
for(Effect effect:getEffects()) {
effect.setValue("mana", mEvent.getMana());
}
switch(setTargetPointer) {
case PERMANENT:
getEffects().get(0).setTargetPointer(new FixedTarget(permanent.getId()));
break;
case PLAYER:
getEffects().get(0).setTargetPointer(new FixedTarget(permanent.getControllerId()));
break;
switch(setTargetPointer) {
case PERMANENT:
effect.setTargetPointer(new FixedTarget(permanent.getId()));
break;
case PLAYER:
effect.setTargetPointer(new FixedTarget(permanent.getControllerId()));
break;
}
}
return true;
}

View file

@ -8,8 +8,6 @@ package mage.abilities.effects.common;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
import mage.players.Player;

View file

@ -34,8 +34,11 @@ import mage.constants.CardType;
* @author Loki
*/
public class SpiritToken extends Token {
public SpiritToken() {
super("Spirit", "1/1 colorless Spirit creature token");
setOriginalExpansionSetCode("CHK");
cardType.add(CardType.CREATURE);
subtype.add("Spirit");
power = new MageInt(1);