mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Some minor framework changes.
This commit is contained in:
parent
00281f0b10
commit
6dd033bd8f
4 changed files with 11 additions and 12 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue