bug fix
reset will attack player/planeswalker
This commit is contained in:
@@ -967,6 +967,21 @@ void GameObserver::gameStateBasedEffects()
|
|||||||
p->nomaxhandsize = true;
|
p->nomaxhandsize = true;
|
||||||
else
|
else
|
||||||
p->nomaxhandsize = false;
|
p->nomaxhandsize = false;
|
||||||
|
//////////////////////////////////
|
||||||
|
//clear will attack player or pw//
|
||||||
|
//////////////////////////////////
|
||||||
|
if (mCurrentGamePhase == MTG_PHASE_COMBATBLOCKERS)
|
||||||
|
{
|
||||||
|
for (int l = z->nb_cards - 1; l >= 0; l--)
|
||||||
|
{
|
||||||
|
MTGCardInstance * c = z->cards[l];
|
||||||
|
if(c)
|
||||||
|
{
|
||||||
|
c->willattackplayer = 0;
|
||||||
|
c->willattackpw = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
/////////////////////////////////////////////////
|
/////////////////////////////////////////////////
|
||||||
//handle end of turn effects while we're at it.//
|
//handle end of turn effects while we're at it.//
|
||||||
/////////////////////////////////////////////////
|
/////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user