summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-05 17:00:51 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-05 17:00:51 +0000
commitd1527fb4557f1b175677bfd171afff2994b84820 (patch)
tree160b41b83f5e59dbbd2d2f045e3b75f46b6a9008 /src/map/skill.c
parentec7f5035ca95489c32d7e49f4b0f8f1c76d36d7f (diff)
downloadhercules-d1527fb4557f1b175677bfd171afff2994b84820.tar.gz
hercules-d1527fb4557f1b175677bfd171afff2994b84820.tar.bz2
hercules-d1527fb4557f1b175677bfd171afff2994b84820.tar.xz
hercules-d1527fb4557f1b175677bfd171afff2994b84820.zip
* Fixed skill tree entries for Vulcan Arrow, and Throw Arrow
* Fixed damage reflecting * Fixed Backstab to not have a push back effect * Fixed auto spell to not taking SP * Fixed Sanctuary to have proper healing count git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1412 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 887395b40..fe22ce6cd 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5633,26 +5633,26 @@ int skill_unit_onplace_timer(struct skill_unit *src,struct block_list *bl,unsign
switch (sg->unit_id) {
case 0x83: /* サンクチュアリ */
{
- int race=status_get_race(bl);
+ int race = status_get_race(bl);
- if (battle_check_undead(race,status_get_elem_type(bl)) || race==6) {
- if (skill_attack(BF_MAGIC,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0)) {
- // reduce healing count if this was meant for damaging [celest]
- // sg->val1 /= 2;
- sg->val1--; // チャットキャンセルに対応
+ if (battle_check_undead(race, status_get_elem_type(bl)) || race==6) {
+ if (skill_attack(BF_MAGIC, ss, &src->bl, bl, sg->skill_id, sg->skill_lv, tick, 0)) {
+ // reduce healing count if this was meant for damaging [hekate]
+ sg->val1 -= 2;
+ //sg->val1--; // チャットキャンセルに対応
}
} else {
int heal = sg->val2;
- if (status_get_hp(bl)>=status_get_max_hp(bl))
+ if (status_get_hp(bl) >= status_get_max_hp(bl))
break;
- if(bl->type==BL_PC && ((struct map_session_data *)bl)->special_state.no_magic_damage)
- heal=0; /* 黄金蟲カード(ヒール量0) */
- clif_skill_nodamage(&src->bl,bl,AL_HEAL,heal,1);
- battle_heal(NULL,bl,heal,0,0);
- if (diff>=500)
+ if (bl->type == BL_PC && ((struct map_session_data *)bl)->special_state.no_magic_damage)
+ heal = 0; /* 黄金蟲カード(ヒール量0) */
+ clif_skill_nodamage(&src->bl, bl, AL_HEAL, heal, 1);
+ battle_heal(NULL, bl, heal, 0, 0);
+ if (diff >= 500)
sg->val1--; // 新規に入ったユニットだけカウント
}
- if (sg->val1<=0)
+ if (sg->val1 <= 0)
skill_delunitgroup(sg);
break;
}