Fixed a bug in IMC2 implementation. Made sure the Tutorial world Ghost keeps moving after winning a battle.

This commit is contained in:
Griatch 2013-03-08 21:42:51 +01:00
parent e0ba7695a5
commit f0fa6b5aee
2 changed files with 5 additions and 1 deletions

View file

@ -241,6 +241,10 @@ class Enemy(Mob):
elif not ostring:
ostring = "%s falls to the ground!" % target.key
self.location.msg_contents(ostring, exclude=[target])
# Pursue any stragglers after the battle
self.battle_mode = False
self.roam_mode = False
self.pursue_mode = True
else:
# no players found, this could mean they have fled. Switch to pursue mode.
self.battle_mode = False