- A few card fixes
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-08 13:07:19 +00:00
parent c76d8a3976
commit f9a2d8283a
10 changed files with 78 additions and 10 deletions
+4 -5
View File
@@ -3915,14 +3915,13 @@ class AInstantControlSteal: public InstantAbility{
Player * TheftController;
AInstantControlSteal(int _id , MTGCardInstance * _source, MTGCardInstance * _target):InstantAbility(_id, _source, _target){
TrueController = _target->controller();
// TrueController->game->putInZone(_target, TrueController->game->inPlay, source->controller()->game->inPlay);
TheftController = source->controller();
MTGCardInstance * copy = _target->changeController(game->currentlyActing());
TheftController = source->controller();
MTGCardInstance * copy = _target->changeController(game->currentlyActing());
target = copy;
source->target = copy;
copy->summoningSickness = 0;
}
int destroy(){
MTGCardInstance * _target = (MTGCardInstance *) target;
if (TheftController && TheftController->game->inPlay->hasCard(_target)){ //if the target is still in game -> spell was destroyed