[wpdev-commits] xmlscripts/scripts ore.py,1.24,1.25
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-26 12:11:03
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29885 Modified Files: ore.py Log Message: exploit fix Index: ore.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/ore.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** ore.py 11 Sep 2004 15:20:48 -0000 1.24 --- ore.py 26 Sep 2004 12:10:49 -0000 1.25 *************** *** 265,268 **** --- 265,274 ---- if ore.amount >= 1 and char.skill[ MINING ] >= reqskill: + # Exploit fix. Otherwise the skillcheck would be before + # consuming items. + if ore.baseid == DEF_ORES[0] and ore.amount <= 1: + char.socket.clilocmessage( 501987, '', GRAY ) + return False + if not skills.checkskill(char, MINING, chance): success = 0 |