changeset 584:b8bed508036f

Don't steal life from skulls
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 10 Apr 2011 16:17:21 +0200
parents 194f71cc0689
children 9f3c2c0fcf01
files skaapsteker/sprites/base.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/sprites/base.py	Sun Apr 10 15:59:59 2011 +0200
+++ b/skaapsteker/sprites/base.py	Sun Apr 10 16:17:21 2011 +0200
@@ -359,8 +359,8 @@
             return
         if hasattr(other, 'damage'):
             other.damage(self.DAMAGE)
-        if hasattr(self.source, 'steal_life'):
-            self.source.steal_life(self.DAMAGE)
+            if hasattr(self.source, 'steal_life'):
+                self.source.steal_life(self.DAMAGE)
         self.explode()