summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshinomori <shinomori@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-08 11:13:46 +0000
committershinomori <shinomori@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-08 11:13:46 +0000
commita274ac2f3b93bca1632d7273503bdbe6d83c9af6 (patch)
tree30ce8cff1eec9f20aefc00ce0c252126d004dc60 /src/map/skill.c
parentf1900833f9281faebd5cc4625238ee4b491812b3 (diff)
downloadhercules-a274ac2f3b93bca1632d7273503bdbe6d83c9af6.tar.gz
hercules-a274ac2f3b93bca1632d7273503bdbe6d83c9af6.tar.bz2
hercules-a274ac2f3b93bca1632d7273503bdbe6d83c9af6.tar.xz
hercules-a274ac2f3b93bca1632d7273503bdbe6d83c9af6.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1213 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 3e657b0c5..d8ce713c6 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6979,6 +6979,7 @@ int skill_use_id( struct map_session_data *sd, int target_id,
break;
case HP_BASILICA: /* ƒoƒWƒŠƒJ */
{
+ struct status_change *sc_data;
if (skill_check_unit_range(sd->bl.m,sd->bl.x,sd->bl.y,sd->skillid,sd->skilllv)) {
clif_skill_fail(sd,sd->skillid,0,0);
return 0;
@@ -6988,7 +6989,7 @@ int skill_use_id( struct map_session_data *sd, int target_id,
return 0;
}
// cancel Basilica if already in effect
- struct status_change *sc_data = status_get_sc_data(&sd->bl);
+ sc_data = status_get_sc_data(&sd->bl);
if(sc_data && sc_data[SC_BASILICA].timer != -1) {
struct skill_unit_group *sg = (struct skill_unit_group *)sc_data[SC_BASILICA].val4;
if (sg && sg->src_id == sd->bl.id) {