probably should test code before commiting tbh

This commit is contained in:
stryan 2021-07-25 13:47:36 -04:00
parent a6f5eb607c
commit a623639af3

View File

@ -99,7 +99,7 @@ func (b *Board) Move(id, src, dest int) bool {
func (b *Board) CanPlay(id int, c *Card, dest int) bool { func (b *Board) CanPlay(id int, c *Card, dest int) bool {
brd := b.GetRow(id) brd := b.GetRow(id)
if !brd[dest].Empty() || !c.Spell { if !brd[dest].Empty() && !c.Spell {
return false return false
} }
return true return true