0
0
Fork 0

Add method for storing a card in the spirit's hand

This commit is contained in:
Oliver-Akins 2021-02-28 19:33:12 -07:00
parent 0be8cbf55b
commit 1a54b301d1

View file

@ -49,7 +49,16 @@ export class Team {
* @param question The card text to remove from the hand. * @param question The card text to remove from the hand.
*/ */
public removeCard(question: string) { public removeCard(question: string) {
this._hand = this._hand.filter(x => x != question);
/**
* Asks the spirit a question, removing it from the medium's hands
*
* @param question The question that is being asked
*/
public askSpiritQuestion(question: string) {
this._hand.writer.push(question);
this.removeCard(question);
}; };