fixed capture issue when two or more points were attacking the base

This commit is contained in:
Vasiliy Horbachenko 2018-07-17 05:53:55 +03:00
parent 3831658162
commit 07128bb5e6

View File

@ -41,7 +41,7 @@ class CaptureEvent(Event):
self.to_cp.base.affect_strength(+self.STRENGTH_RECOVERY)
def skip(self):
if self.to_cp.captured:
if not self.is_player_attacking and self.to_cp.captured:
self.to_cp.captured = False
def player_defending(self, interceptors: db.PlaneDict, clients: db.PlaneDict):