From 0e27de90f75e1cfa3e79ef0379a64a2d6ba9253e Mon Sep 17 00:00:00 2001 From: Inkfish Date: Sun, 3 May 2009 10:20:13 +0000 Subject: * Block equipments switching for some skills (bugreport:2900) - cannot change equipments during Arrow Vulcan's cast time - cannot change equipments within Desperado's attack duration git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13724 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 3ca882d38..22d2ace6d 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -6681,6 +6681,12 @@ int pc_equipitem(struct map_session_data *sd,int n,int req_pos) return 0; } + if( DIFF_TICK(sd->canequip_tick,gettick()) > 0 ) + { + clif_equipitemack(sd,n,0,0); + return 0; + } + id = sd->inventory_data[n]; pos = pc_equippoint(sd,n); //With a few exceptions, item should go in all specified slots. -- cgit v1.2.3-70-g09d2