change ownerShipPlayer on attackBase function
This commit is contained in:
parent
e1b0ac4d87
commit
0dd1664506
@ -33,6 +33,7 @@ class Base: GKEntity {
|
||||
|
||||
func attackBase(base: Base, units:Int) -> [GKEntity]{
|
||||
base.changeOwnerShip = true
|
||||
base.ownerShipPlayer = self.ownerShipPlayer
|
||||
self.unitCount -= units
|
||||
base.unitCount += units
|
||||
return [self, base]
|
||||
|
Loading…
Reference in New Issue
Block a user