added a small fix to further reduce attacker phase exploiting. explaination in comments.

This commit is contained in:
omegablast2002@yahoo.com
2010-10-10 15:11:30 +00:00
parent a08217ba53
commit 93fe22d282
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -38,9 +38,9 @@ class MTGCardInstance: public CardPrimitive, public MTGCard, public Damageable {
int setDefenser(MTGCardInstance * c);
int addBlocker(MTGCardInstance * c);
int removeBlocker(MTGCardInstance * c);
int setAttacker(int value);
int init();
public:
int setAttacker(int value);
MTGGameZone * currentZone;
Pos* view;
int X;
+1
View File
@@ -694,6 +694,7 @@ int MTGAttackRule::receiveEvent(WEvent *e){
for (int i= 0; i < z->nb_cards; i++){
MTGCardInstance * card = z->cards[i];
if (!card->isAttacker() && card->has(Constants::MUSTATTACK)) reactToClick(card);
if (card->isAttacker() && card->isTapped()) card->setAttacker(0);
if (card->isAttacker() && !card->has(Constants::VIGILANCE)) card->tap();
}
return 1;