[wpdev-commits] xmlscripts/scripts/skills hiding.py,1.12,1.13
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-01 16:34:21
|
Update of /cvsroot/wpdev/xmlscripts/scripts/skills In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11706/skills Modified Files: hiding.py Log Message: bugfixes Index: hiding.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/skills/hiding.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** hiding.py 31 Aug 2004 01:55:37 -0000 1.12 --- hiding.py 1 Oct 2004 16:34:10 -0000 1.13 *************** *** 25,28 **** --- 25,40 ---- char.socket.deltag( 'skill_delay' ) + # If any opponent is within 10 tiles. Deny hiding. + opponents = char.getopponents() + + for enemy in opponents: + # Forget about old fights + if enemy.attacktarget != char and char.attacktarget != enemy: + continue + + if enemy.distanceto(char) < 10: + char.socket.clilocmessage(501238) + return False + success = char.checkskill( HIDING, 0, 1000 ) |