`
This is a tricky problem, not sure if I understand it or not. The
Mortivore card file includes an AF_
Regenerate ability. CardFactory_Creatures includes the foloowing code block:
- Code: Select all
else if(cardName.equals("Mortivore")) {
SpellAbility spell = new Spell_Permanent(card) {
private static final long serialVersionUID = -7118801410173525870L;
@Override
public boolean canPlayAI() {
CardList list = new CardList(
AllZone.getZone(Constant.Zone.Graveyard, AllZone.ComputerPlayer).getCards());
list.addAll(AllZone.getZone(Constant.Zone.Graveyard, AllZone.HumanPlayer).getCards());
list = list.getType("Creature");
return super.canPlayAI() && list.size() > 0;
}
};
card.clearSpellAbility();
card.addSpellAbility(spell);
`
The card.clearSpellAbility() is removing the defalut SpellAbility from this card which treats this card as a permenent rather than as a instant/sorcery. The code above provides a simple "can the AI play" this card effectively type of SpellAbility.
So, I think that the
Mortivore regen SpellAbility is being removed by the code above. I guess that these cards in this section should be using this instead?
- Code: Select all
card.clearFirstSpellAbility();
`
There are several cards in this section that I suggest we do the same mod to them as well. These cards include (but may not be limited to) are:
There are several more cards in CardFactory_Creatures that may need a similar treatment. Even if they do not have an AF or Keyword SpellAbility that is being removed, it may be a good idea to form a standardized system to use in the future.
Afterall, we all are guilty of excercising copy and paste techneques at some point in time.
