- Fixing Multikicker.

This commit is contained in:
jendave
2011-08-07 00:35:54 +00:00
parent f128f51586
commit 1f6f5ea47f
2 changed files with 2 additions and 45 deletions

View File

@@ -242,7 +242,7 @@ public class MagicStack extends MyObservable {
push(sp);
}
else if (sp.getPayCosts() != null && ! sp.isReplicate()){
else if (sp.getPayCosts() != null && !sp.isMultiKicker() && !sp.isReplicate()){
push(sp);
}

View File

@@ -482,12 +482,7 @@ public class CardFactory implements NewConstants {
public void execute() {
CardList CardsinPlay = AllZoneUtil.getTypeInPlay("World");
CardsinPlay = CardsinPlay.filter(new CardListFilter() {
public boolean addCard(Card c) {
if(!c.equals(card)) return true;
return false;
}
});
CardsinPlay.remove(card);
for(int i = 0; i < CardsinPlay.size(); i++)
AllZone.GameAction.sacrificeDestroy(CardsinPlay.get(i));
}//execute()
@@ -509,44 +504,6 @@ public class CardFactory implements NewConstants {
}
}
/*
if (hasKeyword(card, "etbLoseLife") != -1) {
int n = hasKeyword(card, "etbLoseLife");
String parse = card.getKeyword().get(n).toString();
card.removeIntrinsicKeyword(parse);
String k[] = parse.split(":");
final int num = Integer.parseInt(k[1]);
card.getSpellPermanent().setLoseLifeAmount(num);
// performs the gain
final SpellAbility etbLoseLifeAbility = new Ability(card, "0") {
@Override
public void resolve() {
card.getController().loseLife(num, card);
}
};
// when the card enters the battlefield
Command etbLoseLife = new Command() {
private static final long serialVersionUID = -6797619430597211329L;
public void execute() {
StringBuilder sb = new StringBuilder();
sb.append(card.getController()).append(" loses "+num+" life");
etbLoseLifeAbility.setStackDescription(sb.toString());
AllZone.Stack.addSimultaneousStackEntry(etbLoseLifeAbility);
}
};
card.addComesIntoPlayCommand(etbLoseLife);
} // etbLoseLife
*/
if(hasKeyword(card, "SearchRebel") != -1) {
int n = hasKeyword(card, "SearchRebel");
if(n != -1) {