Fix attacking menu for planeswalkers and battles, fixed MOM dat file.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
author=Wagic Team
|
author=Wagic Team
|
||||||
name=March of the Machine
|
name=March of the Machine
|
||||||
year=2023-04-21
|
year=2023-04-21
|
||||||
total=463
|
total=451
|
||||||
[/meta]
|
[/meta]
|
||||||
[card]
|
[card]
|
||||||
primitive=Invasion of Ravnica
|
primitive=Invasion of Ravnica
|
||||||
|
|||||||
@@ -2118,8 +2118,14 @@ int MTGPlaneswalkerAttackRule::isReactingToClick(MTGCardInstance * card, ManaCos
|
|||||||
return 0;
|
return 0;
|
||||||
if ((card->isAttacker()) || (card->canAttack(true) && card->attackPlaneswalkerCost < 1))
|
if ((card->isAttacker()) || (card->canAttack(true) && card->attackPlaneswalkerCost < 1))
|
||||||
{
|
{
|
||||||
if(!card->isAttacker())
|
if(!card->isAttacker()){
|
||||||
attackpwmenu = "Attack Planeswalker or Battle";
|
if(card->controller()->opponent()->game->inPlay->hasType("planeswalker") && !card->controller()->opponent()->game->inPlay->hasType("battle"))
|
||||||
|
attackpwmenu = "Attack a Planeswalker";
|
||||||
|
else if(!card->controller()->opponent()->game->inPlay->hasType("planeswalker") && card->controller()->opponent()->game->inPlay->hasType("battle"))
|
||||||
|
attackpwmenu = "Attack a Battle";
|
||||||
|
else
|
||||||
|
attackpwmenu = "Attack Planeswalker or Battle";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
attackpwmenu = "Remove Attacker";
|
attackpwmenu = "Remove Attacker";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user