fix for crash from not having a playerTarget when ability$! is used on targetedPlayer by an instant.

This commit is contained in:
omegablast2002@yahoo.com
2013-01-30 03:51:16 +00:00
parent d07951fbdf
commit c078af5f24
5 changed files with 128 additions and 0 deletions
+2
View File
@@ -3534,6 +3534,8 @@ void AbilityFactory::addAbilities(int _id, Spell * spell)
}
card->playerTarget = spell->getNextPlayerTarget();
}
if(!card->playerTarget && card->previous && card->previous->playerTarget)
card->playerTarget = card->previous->playerTarget;//instants seem to forget as they travel from zone to zone.
_id = magicText(_id, spell);
MTGPlayerCards * zones = card->controller()->game;