Issue#453: possibly correct fix for Commander abilities displayed twice

This commit is contained in:
magenoxx 2014-07-30 22:43:18 +04:00
parent 69ce53e6e8
commit bf7fe02a32
2 changed files with 5 additions and 6 deletions

View file

@ -27,11 +27,12 @@
*/
package mage.view;
import java.io.Serializable;
import mage.cards.Card;
import mage.constants.MageObjectType;
import mage.game.command.Commander;
import java.io.Serializable;
/**
*
* @author Plopman
@ -40,7 +41,6 @@ public class CommanderView extends CardView implements CommandObjectView, Serial
public CommanderView(Commander commander, Card sourceCard) {
super(sourceCard);
rules.addAll(commander.getAbilities().getRules(sourceCard.getName()));
this.mageObjectType = MageObjectType.COMMANDER;
}

View file

@ -27,8 +27,6 @@
*/
package mage.game.command;
import java.util.List;
import java.util.UUID;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.Abilities;
@ -43,6 +41,9 @@ import mage.constants.CardType;
import mage.constants.Zone;
import mage.game.Game;
import java.util.List;
import java.util.UUID;
/**
*
* @author Plopman
@ -62,8 +63,6 @@ public class Commander implements CommandObject{
if (!(ability instanceof SpellAbility)) {
if (ability.getZone().match(Zone.COMMAND)){
Ability newAbility = ability.copy();
// Why are the abilities in command zone printed twice to the toolTipText
newAbility.setRuleVisible(false);
abilites.add(newAbility);
}
}