Update of /cvsroot/wpdev/xmlscripts/scripts/magic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14725/scripts/magic
Modified Files:
spell.py
Log Message:
victims of harmfull spells will now defend themself
Index: spell.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/spell.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** spell.py 27 Sep 2004 22:33:22 -0000 1.29
--- spell.py 15 Oct 2004 17:29:15 -0000 1.30
***************
*** 446,450 ****
#
def harmchar(self, char, victim):
! pass
class TargetWrapper:
--- 446,452 ----
#
def harmchar(self, char, victim):
! # Let the victim defend himself, if he isn't fighting yet
! if not( victim.attacktarget ):
! victim.fight(char)
class TargetWrapper:
|