summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-18 18:58:14 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-18 18:58:14 +0000
commit7809da5abc894e1b25b8010294ef7c97747754b3 (patch)
tree753bbcec96de4263c71b2323ce65a3643f1f2082 /src/map/pc.c
parentdb231e817c5f6d6783b07d91e1d8b0d1243829dd (diff)
downloadhercules-7809da5abc894e1b25b8010294ef7c97747754b3.tar.gz
hercules-7809da5abc894e1b25b8010294ef7c97747754b3.tar.bz2
hercules-7809da5abc894e1b25b8010294ef7c97747754b3.tar.xz
hercules-7809da5abc894e1b25b8010294ef7c97747754b3.zip
- added LK's concentration +1 MDEF.
- Corrected delay-consume items being consumed when used while casting or being unable to act. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12216 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 99fcb0ace..97818bbf2 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3090,9 +3090,11 @@ int pc_useitem(struct map_session_data *sd,int n)
//Since most delay-consume items involve using a "skill-type" target cursor,
//perform a skill-use check before going through. [Skotlex]
//resurrection was picked as testing skill, as a non-offensive, generic skill, it will do.
- if (sd->inventory_data[n]->flag.delay_consume &&
- !status_check_skilluse(&sd->bl, &sd->bl, ALL_RESURRECTION, 0))
- return 0;
+ if (sd->inventory_data[n]->flag.delay_consume && (
+ sd->ud.skilltimer != -1 ||
+ DIFF_TICK(tick, sd->ud.canact_tick) < 0 ||
+ !status_check_skilluse(&sd->bl, &sd->bl, ALL_RESURRECTION, 0)))
+ return 0;
sd->itemid = sd->status.inventory[n].nameid;
sd->itemindex = n;