diff options
author | cannelle <cannelle@users.noreply.github.com> | 2013-10-10 15:51:55 -0500 |
---|---|---|
committer | cannelle <cannelle@users.noreply.github.com> | 2013-10-10 15:51:55 -0500 |
commit | 0cf17827ac0e8b025ce22fea716a5185c5092ad7 (patch) | |
tree | 505d1a23c31261625a4c30045c8dca4ecad20c84 /src/map | |
parent | a879388b0af8354bf8dec199de215b206cacb9ac (diff) | |
download | hercules-0cf17827ac0e8b025ce22fea716a5185c5092ad7.tar.gz hercules-0cf17827ac0e8b025ce22fea716a5185c5092ad7.tar.bz2 hercules-0cf17827ac0e8b025ce22fea716a5185c5092ad7.tar.xz hercules-0cf17827ac0e8b025ce22fea716a5185c5092ad7.zip |
Added WE_BABY distance check.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 2b531c3ec..ab937fadd 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6971,16 +6971,16 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui if(sd) { struct map_session_data *f_sd = pc->get_father(sd); struct map_session_data *m_sd = pc->get_mother(sd); - bool we_baby_parents; + bool we_baby_parents = false; if(m_sd && check_distance_bl(bl,&m_sd->bl,AREA_SIZE)) { sc_start(&m_sd->bl,type,100,skill_lv,skill->get_time(skill_id,skill_lv)); clif->specialeffect(&m_sd->bl,408,AREA); - we_baby_parents = 1; + we_baby_parents = true; } if(f_sd && check_distance_bl(bl,&f_sd->bl,AREA_SIZE)) { sc_start(&f_sd->bl,type,100,skill_lv,skill->get_time(skill_id,skill_lv)); clif->specialeffect(&f_sd->bl,408,AREA); - we_baby_parents = 1; + we_baby_parents = true; } if (!we_baby_parents) { clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); |