Made the mob invulnerable if it has no health Attribute set. Resolves
This commit is contained in:
parent
f57aaa65cd
commit
3890bcbfc7
1 changed files with 5 additions and 0 deletions
|
|
@ -383,6 +383,11 @@ class Mob(tut_objects.TutorialObject):
|
||||||
Someone landed a hit on us. Check our status
|
Someone landed a hit on us. Check our status
|
||||||
and start attacking if not already doing so.
|
and start attacking if not already doing so.
|
||||||
"""
|
"""
|
||||||
|
if self.db.health is None:
|
||||||
|
# health not set - this can't be damaged.
|
||||||
|
attacker.msg(self.db.weapon_ineffective_msg)
|
||||||
|
return
|
||||||
|
|
||||||
if not self.ndb.is_immortal:
|
if not self.ndb.is_immortal:
|
||||||
if not weapon.db.magic:
|
if not weapon.db.magic:
|
||||||
# not a magic weapon - divide away magic resistance
|
# not a magic weapon - divide away magic resistance
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue