Changeset 410:115e738e209c


Ignore:
Timestamp:
04/09/11 15:30:09 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
63656332656339636635643964383530343636646135653562346237616636636362386333613262
Message:

Become visible when attacking. Enemies shouldn't attack invisible foxes.

Location:
skaapsteker/sprites
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/base.py

    r409 r410  
    191191
    192192    def start_attack(self, player):
     193        if player.invisible:
     194            return
    193195        if self._animation == 'attacking':
    194196            return # We're already attacking
  • skaapsteker/sprites/player.py

    r408 r410  
    301301
    302302    def _bite_attack(self):
     303        self.invisible = 0
    303304        self.attacking = 2
    304305        self._last_time = time.time() # Reset the animation clock
     
    313314
    314315    def _fireball_attack(self):
     316        self.invisible = 0
    315317        self.attacking = 2
    316318        self._last_time = time.time() # Reset the animation clock
     
    318320
    319321    def _lightning_attack(self):
     322        self.invisible = 0
    320323        self.attacking = 2
    321324        self._last_time = time.time() # Reset the animation clock
Note: See TracChangeset for help on using the changeset viewer.