summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-07 16:39:58 -0200
committershennetsind <ind@henn.et>2013-02-07 16:39:58 -0200
commita4802eaef9d71283070f1f31c859da871a7c8d32 (patch)
tree8c91f3d91ff763fb075f217dee389fba9048dcf4
parent6fb716102722944463d9cec9be8f46760fde9616 (diff)
downloadhercules-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.c6
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])