probably should test code before commiting tbh
This commit is contained in:
parent
a6f5eb607c
commit
a623639af3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user