From a0a05f00e2177f52903b7f9a55c8852a9e56d3d5 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 17 Sep 2007 19:13:58 +0000 Subject: - Applied various crash-protections to script commands that deal with the equip-position array. - Corrected and simplified the skill_magic_reflect function. Fixed damage reflection being based on the caster rather than the target. - Potions are now usable inside Gospel by the casting Paladin (as per Aegis tests done by AuronX) - The unequip script command now takes a position from 1 to 10 rather than 0 to 9 (to make it consistant with all the other equip position related script commands) - Added the EQI_* constants to db/const.txt in a format usable by the equip-position related script commands. - Updated some items to use the new EQI constants. - Also updated doc/script_commands.txt to refer to the EQI list. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11230 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 00662e91c..3dd2289c3 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -3071,8 +3071,6 @@ int pc_useitem(struct map_session_data *sd,int n) sd->sc.data[SC_BERSERK].timer!=-1 || sd->sc.data[SC_MARIONETTE].timer!=-1 || (sd->sc.data[SC_GRAVITATION].timer!=-1 && sd->sc.data[SC_GRAVITATION].val3 == BCT_SELF) || - //Cannot use Potions/Healing items while under Gospel. - (sd->sc.data[SC_GOSPEL].timer!=-1 && sd->sc.data[SC_GOSPEL].val4 == BCT_SELF && sd->inventory_data[n]->type == IT_HEALING) || sd->sc.data[SC_TRICKDEAD].timer != -1 || sd->sc.data[SC_BLADESTOP].timer != -1 || (sd->sc.data[SC_NOCHAT].timer!=-1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOITEM) -- cgit v1.2.3-70-g09d2