*** empty log message ***

This commit is contained in:
Dave Schuyler 2003-11-20 04:47:37 +00:00
parent 1cbe39e68e
commit ce403f4066

View File

@ -89,9 +89,7 @@ class DistributedLevelAI(DistributedObjectAI.DistributedObjectAI,
self.notify.debug("setOuch %s" % penalty) self.notify.debug("setOuch %s" % penalty)
# make sure penalty is > 0 # make sure penalty is > 0
if av and (penalty > 0): if av and (penalty > 0):
curHp = av.getHp() av.takeDamage(penalty)
newHp = max(0, curHp-penalty)
av.b_setHp(newHp)
if __debug__: if __debug__:
# level editors should call this func to tweak attributes of level # level editors should call this func to tweak attributes of level