mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixing Multikicker.
This commit is contained in:
@@ -242,7 +242,7 @@ public class MagicStack extends MyObservable {
|
|||||||
push(sp);
|
push(sp);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (sp.getPayCosts() != null && ! sp.isReplicate()){
|
else if (sp.getPayCosts() != null && !sp.isMultiKicker() && !sp.isReplicate()){
|
||||||
push(sp);
|
push(sp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -482,12 +482,7 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
public void execute() {
|
public void execute() {
|
||||||
CardList CardsinPlay = AllZoneUtil.getTypeInPlay("World");
|
CardList CardsinPlay = AllZoneUtil.getTypeInPlay("World");
|
||||||
CardsinPlay = CardsinPlay.filter(new CardListFilter() {
|
CardsinPlay.remove(card);
|
||||||
public boolean addCard(Card c) {
|
|
||||||
if(!c.equals(card)) return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
for(int i = 0; i < CardsinPlay.size(); i++)
|
for(int i = 0; i < CardsinPlay.size(); i++)
|
||||||
AllZone.GameAction.sacrificeDestroy(CardsinPlay.get(i));
|
AllZone.GameAction.sacrificeDestroy(CardsinPlay.get(i));
|
||||||
}//execute()
|
}//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) {
|
if(hasKeyword(card, "SearchRebel") != -1) {
|
||||||
int n = hasKeyword(card, "SearchRebel");
|
int n = hasKeyword(card, "SearchRebel");
|
||||||
if(n != -1) {
|
if(n != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user