more util

This commit is contained in:
stryan 2021-10-07 13:37:12 -04:00
parent 1606a2953b
commit 596291bbf8
1 changed files with 3 additions and 5 deletions

View File

@ -141,12 +141,10 @@ func OracleEffect(c *Card, g *Game) {
case 1:
c.Power = c.Power + 1
case 2:
if c.Owner == SentinalID {
g.CardBuffer = DeckFromCards(g.SentinalDeck.Scry(1))
} else if c.Owner == ScourgeID {
g.CardBuffer = DeckFromCards(g.ScourgeDeck.Scry(1))
} else {
if c.Owner != SentinalID || c.Owner != ScourgeID {
log.Println("card draw effect was played but with no owner?")
} else {
g.CardBuffer = DeckFromCards(g.GetDeck(c.Owner).Scry(1))
}
g.CanDraw = true
g.HasDrawn = false