massive update, additions and changelog in first comment.
This commit is contained in:
@@ -249,10 +249,13 @@ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone
|
||||
return card; //Error
|
||||
}
|
||||
|
||||
void MTGPlayerCards::discardRandom(MTGGameZone * from){
|
||||
void MTGPlayerCards::discardRandom(MTGGameZone * from,MTGCardInstance * source){
|
||||
if (!from->nb_cards)
|
||||
return;
|
||||
int r = WRand() % (from->nb_cards);
|
||||
WEvent * e = NEW WEventCardDiscard(from->cards[r]);
|
||||
GameObserver * game = GameObserver::GetInstance();
|
||||
game->receiveEvent(e);
|
||||
putInZone(from->cards[r],from, graveyard);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user