Changeset 352:4e158a7bd119


Ignore:
Timestamp:
04/09/11 11:47:21 (12 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
38326237313133366536643562333066313137343633333832616362373331616536633262343934
Message:

Stop infinte attacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/base.py

    r342 r352  
    164164        AnimatedGameSprite.update(self)
    165165        if self._animation == 'attacking':
    166             if self._frame == 0 and self._done_attack and (self._last_time - self._start_attack_time) > self.frame_pause:
     166            if self._frame == 0 and self._done_attack:
    167167                # We've just looped through the animation sequence
    168168                self._animation = self._old_state
     
    177177        if self.check_collides(self._target):
    178178            self._target.damage(self.attack_damage)
    179             self._done_attack = True
     179        self._done_attack = True
    180180
    181181    def start_attack(self, player):
Note: See TracChangeset for help on using the changeset viewer.