mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
fixed Umezawa's Jitte not getting counters in compy Threaten ed your equipped creature.
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user