summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-09-10 00:43:35 +0200
committerMichieru <Michieru@users.noreply.github.com>2014-09-10 00:43:35 +0200
commit3718b169b26e90dda3b94593e650aea1d892bda5 (patch)
treea4f6400659d5d722e39e11f06ec01bbf9d280818 /src/map/unit.c
parente785879df0519ee69afcac34a1b49db1462d67fc (diff)
parent4abf2cfb29dbca5d920b4d3fc641a60d0771f126 (diff)
downloadhercules-3718b169b26e90dda3b94593e650aea1d892bda5.tar.gz
hercules-3718b169b26e90dda3b94593e650aea1d892bda5.tar.bz2
hercules-3718b169b26e90dda3b94593e650aea1d892bda5.tar.xz
hercules-3718b169b26e90dda3b94593e650aea1d892bda5.zip
Merge pull request #342 from csnv/somefixes
Fixes songs refresh bug, updates BA_ASSASSINCROSS
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 519427635..8b74ff80c 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1247,8 +1247,10 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
ARR_FIND(0, count, i, sd->devotion[i] == target_id);
if (i == count) {
ARR_FIND(0, count, i, sd->devotion[i] == 0);
- if(i == count)
- return 0; // Can't cast on other characters when limit is reached
+ if(i == count) {
+ clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
+ return 0; // Can't cast on other characters when limit is reached
+ }
}
}
break;