Update of /cvsroot/wpdev/xmlscripts/scripts/magic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6595/magic
Modified Files:
__init__.py
Log Message:
Fix for custom spells
Index: __init__.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/__init__.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** __init__.py 29 Aug 2004 13:37:16 -0000 1.12
--- __init__.py 31 Aug 2004 20:21:25 -0000 1.13
***************
*** 147,151 ****
return
! message = "Casting spell %u (%s) on coordinate %s.\n" % (spell.spellid, spell.__class__.__name__, str(pos))
char.log(LOG_MESSAGE, message)
spell.target(char, mode, TARGET_GROUND, pos, args, item)
--- 147,154 ----
return
! if type(self.spellid) == int:
! message = "Casting spell %u (%s) on coordinate %s.\n" % (spell.spellid, spell.__class__.__name__, str(pos))
! else:
! message = "Casting spell %s on coordinate %s.\n" % (spell.__class__.__name__, str(pos))
char.log(LOG_MESSAGE, message)
spell.target(char, mode, TARGET_GROUND, pos, args, item)
|