Erwan
-fix issue 47 (all creatures have haste)
This commit is contained in:
@@ -92,7 +92,7 @@ void MTGCardInstance::initMTGCI(){
|
||||
tapped = 0;
|
||||
untapBlockers = NULL;
|
||||
untapping = 0;
|
||||
summoningSickness = 0;
|
||||
summoningSickness = 1;
|
||||
target = NULL;
|
||||
nbprotections = 0;
|
||||
type_as_damageable = DAMAGEABLE_MTGCARDINSTANCE;
|
||||
|
||||
@@ -101,26 +101,6 @@ void MTGPlayerCards::showHand(){
|
||||
hand->debugPrint();
|
||||
}
|
||||
|
||||
|
||||
MTGCardInstance * MTGPlayerCards::putInPlay(MTGCardInstance * card){
|
||||
MTGGameZone * from = hand;
|
||||
MTGCardInstance * copy = hand->removeCard(card);
|
||||
if(!copy){
|
||||
copy = stack->removeCard(card); //Which one is it ???
|
||||
from = stack;
|
||||
}
|
||||
inPlay->addCard(copy);
|
||||
copy->summoningSickness = 1;
|
||||
copy->changedZoneRecently = 1.f;
|
||||
|
||||
GameObserver *g = GameObserver::GetInstance();
|
||||
WEvent * e = NEW WEventZoneChange(copy, from, inPlay);
|
||||
g->receiveEvent(e);
|
||||
//delete e;
|
||||
|
||||
return copy;
|
||||
}
|
||||
|
||||
MTGCardInstance * MTGPlayerCards::putInGraveyard(MTGCardInstance * card){
|
||||
MTGCardInstance * copy = NULL;
|
||||
MTGGraveyard * grave = card->owner->game->graveyard;
|
||||
|
||||
Reference in New Issue
Block a user