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