diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-03 02:08:49 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-03 02:08:49 +0000 |
commit | 2365342722228a79ff93cad0aca66fdaa061f880 (patch) | |
tree | 330f1116a234553dbe650167f28e0f9880ecefc5 /src/map/skill.c | |
parent | 00354ac69bcc6bd70c9a0110236664875958dd1e (diff) | |
download | hercules-2365342722228a79ff93cad0aca66fdaa061f880.tar.gz hercules-2365342722228a79ff93cad0aca66fdaa061f880.tar.bz2 hercules-2365342722228a79ff93cad0aca66fdaa061f880.tar.xz hercules-2365342722228a79ff93cad0aca66fdaa061f880.zip |
Fixed bugreport:5681 Sorcerer Striking may now only be cast on self or party members, SP upkeep updated.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16058 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 484fb2915..f75fda59b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5137,7 +5137,11 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in if (sd) { int bonus = 25 + 10 * skilllv; bonus += (pc_checkskill(sd, SA_FLAMELAUNCHER)+pc_checkskill(sd, SA_FROSTWEAPON)+pc_checkskill(sd, SA_LIGHTNINGLOADER)+pc_checkskill(sd, SA_SEISMICWEAPON))*5; - clif_skill_nodamage( src, bl, skillid, skilllv, sc_start2(bl, type, 100, skilllv, bonus, skill_get_time(skillid,skilllv)) ); + clif_skill_nodamage( src, bl, skillid, skilllv, + battle_check_target(src,bl,BCT_PARTY) ? + sc_start2(bl, type, 100, skilllv, bonus, skill_get_time(skillid,skilllv)) : + 0 + ); } break; |