From 2479f55a86fc2919805e4f38f6ae556f2f045fd4 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 7 Jul 2006 13:24:47 +0000 Subject: - Added a temporary band-aid to prevent executing the script of non-arrows when they are equipped on the arrow-slot (until the actual cause of why pc_unequipitem is not working correctly is discovered/fixed) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7558 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/status.c b/src/map/status.c index 09d6992b2..bce2fd246 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1694,7 +1694,9 @@ int status_calc_pc(struct map_session_data* sd,int first) if(sd->equip_index[EQI_AMMO] >= 0){ // –î index = sd->equip_index[EQI_AMMO]; - if(sd->inventory_data[index]){ // Arrows + //FIXME: The equip check is a temporary measure until a speed exploit + // that has yet to be fixed! + if(sd->inventory_data[index] && sd->status.inventory[index].equip&EQP_AMMO){ // Arrows sd->state.lr_flag = 2; run_script(sd->inventory_data[index]->script,0,sd->bl.id,0); sd->state.lr_flag = 0; -- cgit v1.2.3-70-g09d2