Cardfactory bug hunting results

I was watching the development of this game for a while now and decided to follow the example of zerker2000 to start having a look at the Cardfactory code.
Here are two bugs that I found, with my fix suggestions: Both belong to the batch of mass pump spells:
1. Shield Wall didn't work because it it didn't get it's list of targets assigned:
Here are two bugs that I found, with my fix suggestions: Both belong to the batch of mass pump spells:
1. Shield Wall didn't work because it it didn't get it's list of targets assigned:
- Code: Select all
CardList list = new CardList();
if (cardName.equals("Chorus of Woe") || // Creatures "you" Control
cardName.equals("Dance of Shadows") ||
cardName.equals("Desperate Charge") ||
cardName.equals("Kjeldoran War Cry") ||
cardName.equals("Overrun") ||
cardName.equals("Path of Anger's Flame") ||
cardName.equals("Righteous Charge") ||
cardName.equals("Scare Tactics") ||
cardName.equals("Shield Wall") || // was missing
cardName.equals("Solidarity") ||
cardName.equals("Steadfastness") ||
cardName.equals("Virtuous Charge") ||
cardName.equals("Vitalizing Wind") ||
cardName.equals("Warrior's Charge") ||
cardName.equals("Warrior's Honor"))
{
PlayerZone play = AllZone.getZone(Constant.Zone.Play, card.getController());
list.addAll(play.getCards());
}
- Code: Select all
if(AllZone.GameAction.isCardInPlay(target[0]))
{
target[0].addTempAttackBoost(pboost);
target[0].addTempDefenseBoost(tboost);
if(!kboost.equals("None"))
target[0].addExtrinsicKeyword("Trample"); // must be kboost
AllZone.EndOfTurn.addUntil(untilEOT);
}//if