Erwan
- Actually fix issue 142
This commit is contained in:
@@ -128,6 +128,7 @@ dragon_fodder.txt
|
|||||||
dragon_fodder2.txt
|
dragon_fodder2.txt
|
||||||
dragon_whelp_i154.txt
|
dragon_whelp_i154.txt
|
||||||
drain_life.txt
|
drain_life.txt
|
||||||
|
dream_fracture_i142.txt
|
||||||
drift_of_the_dead.txt
|
drift_of_the_dead.txt
|
||||||
dromad_purebred.txt
|
dromad_purebred.txt
|
||||||
dross_harvester.txt
|
dross_harvester.txt
|
||||||
|
|||||||
+4
-4
@@ -25,11 +25,11 @@ endinterruption
|
|||||||
[ASSERT]
|
[ASSERT]
|
||||||
firstmain
|
firstmain
|
||||||
[PLAYER1]
|
[PLAYER1]
|
||||||
hand:Forest
|
library:Forest
|
||||||
graveyard:Grizzly Bears
|
graveyard:Grizzly Bears
|
||||||
library:Craw Wurm
|
hand:Craw Wurm
|
||||||
[PLAYER2]
|
[PLAYER2]
|
||||||
hand:Swamp
|
library:Swamp
|
||||||
graveyard:Dream Fracture
|
graveyard:Dream Fracture
|
||||||
library:Air Elemental
|
hand:Air Elemental
|
||||||
[END]
|
[END]
|
||||||
@@ -2263,7 +2263,16 @@ AManaProducer::AManaProducer(int id, MTGCardInstance * card, Targetable * t, Man
|
|||||||
Targetable * ActivatedAbilityTP::getTarget(){
|
Targetable * ActivatedAbilityTP::getTarget(){
|
||||||
switch(who){
|
switch(who){
|
||||||
case TargetChooser::TARGET_CONTROLLER:
|
case TargetChooser::TARGET_CONTROLLER:
|
||||||
if (target) return ((MTGCardInstance *)target)->controller();
|
if (target){
|
||||||
|
switch(target->typeAsTarget()) {
|
||||||
|
case TARGET_CARD:
|
||||||
|
return ((MTGCardInstance *)target)->controller();
|
||||||
|
case TARGET_STACKACTION:
|
||||||
|
return((Interruptible *)target)->source->controller();
|
||||||
|
default:
|
||||||
|
return (Player *)target;
|
||||||
|
}
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
case TargetChooser::CONTROLLER:
|
case TargetChooser::CONTROLLER:
|
||||||
return source->controller();
|
return source->controller();
|
||||||
|
|||||||
Reference in New Issue
Block a user