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:
Anthony Calosa
2017-03-01 10:35:47 +08:00
parent 5f1874edae
commit e47256eae7
3 changed files with 138 additions and 68 deletions
+2
View File
@@ -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;