Added/fixed primitives, updated the "missing_cards_by_sets" folder, added a new trigger when a player shuffles his/her library, added new keywords "plastshlturn" and "olastshlturn" to retrieve the last turn a player shuffled his/her library, refactoring of some source files.
This commit is contained in:
@@ -1197,6 +1197,11 @@ void MTGGameZone::cleanupPhase()
|
||||
void MTGGameZone::shuffle()
|
||||
{
|
||||
owner->getObserver()->getRandomGenerator()->random_shuffle(cards.begin(), cards.end());
|
||||
if(this == owner->game->library){
|
||||
owner->lastShuffleTurn = owner->getObserver()->turn;
|
||||
WEvent * e = NEW WEventplayerShuffled(owner); //Added to trigger an event when a player shuffles his/her library.
|
||||
owner->getObserver()->receiveEvent(e);
|
||||
}
|
||||
}
|
||||
|
||||
void MTGGameZone::addCard(MTGCardInstance * card)
|
||||
|
||||
Reference in New Issue
Block a user