diff options
author | shennetsind <ind@henn.et> | 2013-02-07 16:39:58 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-02-07 16:39:58 -0200 |
commit | a4802eaef9d71283070f1f31c859da871a7c8d32 (patch) | |
tree | 8c91f3d91ff763fb075f217dee389fba9048dcf4 | |
parent | 6fb716102722944463d9cec9be8f46760fde9616 (diff) | |
download | hercules-a4802eaef9d71283070f1f31c859da871a7c8d32.tar.gz hercules-a4802eaef9d71283070f1f31c859da871a7c8d32.tar.bz2 hercules-a4802eaef9d71283070f1f31c859da871a7c8d32.tar.xz hercules-a4802eaef9d71283070f1f31c859da871a7c8d32.zip |
Fixed Bug #6803
You no longer can dispell guild mates in non-pkable areas
http://hercules.ws/board/tracker/issue-6803-dispell-bug/
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index ad52a5c1f..4b9484609 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6360,6 +6360,12 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui } if(status_isimmune(bl) || !tsc || !tsc->count) break; + + if( sd && dstsd && !map_flag_vs(sd->bl.m) && sd->status.guild_id == dstsd->status.guild_id ) { + clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); + break; + } + for(i=0;i<SC_MAX;i++) { if (!tsc->data[i]) |