Erwan
- fix issue 179 (@movedTo battlefield triggers when a creature changes controller) - fix issue 176 (Ray of Command)
This commit is contained in:
@@ -37,6 +37,7 @@ generic/tokens.txt
|
|||||||
generic/trample.txt
|
generic/trample.txt
|
||||||
generic/trample_vs_indestructible.txt
|
generic/trample_vs_indestructible.txt
|
||||||
generic/trample_vs_multiblock.txt
|
generic/trample_vs_multiblock.txt
|
||||||
|
generic/triggers_at_movedto_i179.txt
|
||||||
generic/wither.txt
|
generic/wither.txt
|
||||||
########################
|
########################
|
||||||
#Specific Cards
|
#Specific Cards
|
||||||
@@ -215,6 +216,7 @@ pygmy_troll.txt
|
|||||||
pyroclasm.txt
|
pyroclasm.txt
|
||||||
rampant_growth.txt
|
rampant_growth.txt
|
||||||
ray_of_command.txt
|
ray_of_command.txt
|
||||||
|
ray_of_command_i176.txt
|
||||||
reclusive_wight.txt
|
reclusive_wight.txt
|
||||||
reclusive_wight2.txt
|
reclusive_wight2.txt
|
||||||
recover.txt
|
recover.txt
|
||||||
|
|||||||
@@ -112,6 +112,13 @@ public:
|
|||||||
if (!e) return 0;
|
if (!e) return 0;
|
||||||
if (!toTc->canTarget(e->card)) return 0;
|
if (!toTc->canTarget(e->card)) return 0;
|
||||||
if (fromTc && !fromTc->targetsZone(e->from)) return 0;
|
if (fromTc && !fromTc->targetsZone(e->from)) return 0;
|
||||||
|
|
||||||
|
//Battlefield is a special case. We usually don't want to trigger when a card comes from battlefield to battlefield
|
||||||
|
// http://code.google.com/p/wagic/issues/detail?id=179
|
||||||
|
if ((e->from == game->players[0]->game->battlefield || e->from == game->players[1]->game->battlefield) &&
|
||||||
|
(e->to == game->players[0]->game->battlefield || e->to == game->players[1]->game->battlefield)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3954,7 +3961,7 @@ class AInstantControlSteal: public InstantAbility{
|
|||||||
AInstantControlSteal(int _id , MTGCardInstance * _source, MTGCardInstance * _target):InstantAbility(_id, _source, _target){
|
AInstantControlSteal(int _id , MTGCardInstance * _source, MTGCardInstance * _target):InstantAbility(_id, _source, _target){
|
||||||
TrueController = _target->controller();
|
TrueController = _target->controller();
|
||||||
TheftController = source->controller();
|
TheftController = source->controller();
|
||||||
MTGCardInstance * copy = _target->changeController(game->currentlyActing());
|
MTGCardInstance * copy = _target->changeController(TheftController);
|
||||||
target = copy;
|
target = copy;
|
||||||
source->target = copy;
|
source->target = copy;
|
||||||
copy->summoningSickness = 0;
|
copy->summoningSickness = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user