summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-01-18 17:41:03 -0200
committershennetsind <ind@henn.et>2015-01-18 17:41:03 -0200
commitdb870bbd480e3383d8cf0279a33eadfa7da60f0b (patch)
treefb9f2879e66c489db3e6291645594aed76bf050e /src
parentc90a099b21d015fedb279aab33602106a235d670 (diff)
downloadhercules-db870bbd480e3383d8cf0279a33eadfa7da60f0b.tar.gz
hercules-db870bbd480e3383d8cf0279a33eadfa7da60f0b.tar.bz2
hercules-db870bbd480e3383d8cf0279a33eadfa7da60f0b.tar.xz
hercules-db870bbd480e3383d8cf0279a33eadfa7da60f0b.zip
Fixed Bug 8441
Magnifier item no longer consumes sp http://hercules.ws/board/tracker/issue-8441-item-magnifier-is-consuming-sp/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 05cb887f9..1fad55364 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6648,7 +6648,8 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
map->freeblock_unlock();
return 1;
}
- status_zap(src,0,skill->db[skill->get_index(skill_id)].sp[skill_lv]); // consume sp only if succeeded
+ if( sd->skillitem != skill_id )
+ status_zap(src,0,skill->db[skill->get_index(skill_id)].sp[skill_lv]); // consume sp only if succeeded
}
break;