Ignore:
Timestamp:
09/04/13 22:37:48 (8 years ago)
Author:
David Sharpe
Branch:
default
Phase:
public
Rebase:
61616133613866313634653438613766636237393962366432303137633561623438616539386136
Message:

Correcting damage application

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r261 r265  
    220220        """Attempt to hurt something.
    221221        """
    222         vec = Vec2d.unit()
    223         vec.angle = self.angle
    224         vec.length = 100
    225         FireEvent.post(self.physicser.position, vec)
    226         print "Biff", self.physicser.position, vec
     222        if self.in_wolf_form():
     223            pass
     224        else:
     225            vec = Vec2d.unit()
     226            vec.angle = self.angle
     227            vec.length = 100
     228            FireEvent.post(self.physicser.position, vec)
     229            print "Biff", self.physicser.position, vec
    227230
    228231    def in_wolf_form(self):
Note: See TracChangeset for help on using the changeset viewer.