fixed Umezawa's Jitte not getting counters in compy Threaten ed your equipped creature.

This commit is contained in:
jendave
2011-08-06 04:31:09 +00:00
parent 612d82e79d
commit 50c09939c7

View File

@@ -634,22 +634,17 @@ public class CombatUtil {
for(Card crd:cl) for(Card crd:cl)
GameActionUtil.executeGuiltyConscienceEffects(c, crd); GameActionUtil.executeGuiltyConscienceEffects(c, crd);
if(CardFactoryUtil.hasNumberEquipments(c, "Umezawa's Jitte") == 1 && c.getNetAttack() > 0) { /*
PlayerZone play = AllZone.getZone(c); * Whenever equipped creature deals combat damage, put two
CardList clist = new CardList(play.getCards()); * charge counters on Umezawa's Jitte.
clist = clist.getName("Umezawa's Jitte"); */
Card jitte; if(c.isEquipped() && c.getNetAttack() > 0) {
if(clist.size() > 0) jitte = clist.get(0); ArrayList<Card> equips = c.getEquippedBy();
else //jitte belongs to opponent for(Card equip:equips) {
{ if(equip.getName().equals("Umezawa's Jitte")) {
PlayerZone oppPlay = AllZone.getZone(Constant.Zone.Play, equip.addCounter(Counters.CHARGE, 2);
AllZone.GameAction.getOpponent(c.getController())); }
CardList crdList = new CardList(oppPlay.getCards());
crdList.getName("Umezawa's Jitte");
jitte = crdList.get(0);
} }
jitte.addCounter(Counters.CHARGE, 2);
} }
} }