コード例 #1
0
 def isCharging(self, user, environment):
     """ Determines if the attack should not be completed because it is charging """
     self.getTurns(environment)
     if environment.weather.type == self.weatherType:
         self.turnOn = self.turnToAttack
     return ChargeDelegate.isCharging(self, user, environment)
コード例 #2
0
 def isCharging(self, user, environment):
     """ Determines if the attack should not be completed because it is charging """
     self.getTurns(environment)
     if environment.weather.type == self.weatherType:
         self.turnOn = self.turnToAttack
     return ChargeDelegate.isCharging(self, user, environment)