summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-18 10:52:20 -0300
committershennetsind <ind@henn.et>2013-02-18 10:52:20 -0300
commit327a46d159973eb1fe224e82388d0dae32c35b28 (patch)
tree8211d0b904a029e919ab540092fc9cbb341a606e /src/map/skill.c
parent3bba651be303be1cecb004edd350870ddb84e0fb (diff)
downloadhercules-327a46d159973eb1fe224e82388d0dae32c35b28.tar.gz
hercules-327a46d159973eb1fe224e82388d0dae32c35b28.tar.bz2
hercules-327a46d159973eb1fe224e82388d0dae32c35b28.tar.xz
hercules-327a46d159973eb1fe224e82388d0dae32c35b28.zip
Fixed Bug #7082
Arrullo no longer crashes the server when used by monsters http://hercules.ws/board/tracker/issue-7082-so-arrullo-casted-by-npc/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 26d63f8ac..98c7e8ba3 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8598,7 +8598,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
case SO_ARRULLO:
{
// [(15 + 5 * Skill Level) + ( Caster’s INT / 5 ) + ( Caster’s Job Level / 5 ) - ( Target’s INT / 6 ) - ( Target’s LUK / 10 )] %
- int rate = (15 + 5 * skill_lv) + status_get_int(src)/5 + (sd)?sd->status.job_level:0;
+ int rate = (15 + 5 * skill_lv) + status_get_int(src)/5 + (sd ? sd->status.job_level : 0);
rate -= status_get_int(bl)/6 - status_get_luk(bl)/10;
clif_skill_nodamage(src, bl, skill_id, skill_lv, 1);
sc_start2(bl, type, rate, skill_lv, 1, skill_get_time(skill_id, skill_lv));