Fixed a problem of damage redirection from player to battle cards, added some new primitives from MOM set,fixed some primitives.

This commit is contained in:
Vittorio Alfieri
2023-05-15 11:23:38 +02:00
parent 7a52f789b9
commit a1d82d9f84
3 changed files with 169 additions and 101 deletions
+1 -1
View File
@@ -1545,7 +1545,7 @@ AADamager::AADamager(GameObserver* observer, int _id, MTGCardInstance * _source,
if (_target)
{
WParsedInt damage(d, NULL, (MTGCardInstance *)source);
if(_target == game->opponent() && (game->opponent()->inPlay()->hasType("planeswalker") || game->opponent()->inPlay()->hasType("battle")) && !redirected)
if(_target == game->opponent() && game->opponent()->inPlay()->hasType("planeswalker") && !redirected)
{
vector<MTGAbility*>selection;
MTGCardInstance * check = NULL;