update cant attack rule
If it says cant attack or cant attack You or PlanesWalker, creatures cant attack a player or planeswalker, If it says cant attack You, creatures cant attack a player only but can attack a PlanesWalker
This commit is contained in:
@@ -694,8 +694,6 @@ int MTGCardInstance::canPWAttack()
|
||||
{
|
||||
if (has(Constants::CANTATTACKPW))
|
||||
return 0;
|
||||
if (has(Constants::FLYERSONLY) && !has(Constants::FLYING))
|
||||
return 0;
|
||||
if (tapped)
|
||||
return 0;
|
||||
if (hasSummoningSickness())
|
||||
|
||||
@@ -1142,6 +1142,8 @@ MTGGameZone * MTGGameZone::intToZone(GameObserver *g, int zoneId, MTGCardInstanc
|
||||
else
|
||||
p2 = target->controller();
|
||||
|
||||
if(p2 != p && p2 != p->opponent())//should match at least one
|
||||
p2 = p;
|
||||
|
||||
MTGGameZone * result = intToZone(zoneId, p, p2);
|
||||
if (result) return result;
|
||||
|
||||
Reference in New Issue
Block a user