summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-03 19:17:38 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:22:13 +0200
commit52bd4a502c919e789e8900820423a49a4343b3d7 (patch)
tree02118d843fa381009928714aefffd71eadfb894d /src/map/skill.c
parentf4e8189545642ee0bf87f3da546bddc918682935 (diff)
downloadhercules-52bd4a502c919e789e8900820423a49a4343b3d7.tar.gz
hercules-52bd4a502c919e789e8900820423a49a4343b3d7.tar.bz2
hercules-52bd4a502c919e789e8900820423a49a4343b3d7.tar.xz
hercules-52bd4a502c919e789e8900820423a49a4343b3d7.zip
Implemented SC_BITESCAR:
Cannot be reset by dispell. Cannot be healed by item/NPC once in BITESCAR. Heal Skill would end the BiteScar Effect.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4be827572..73154d3ae 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5589,6 +5589,9 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
else if (tsc->data[SC_BERSERK])
heal = 0; //Needed so that it actually displays 0 when healing.
}
+ if (skill_id == AL_HEAL) {
+ status_change_end(bl, SC_BITESCAR, INVALID_TIMER);
+ }
clif->skill_nodamage (src, bl, skill_id, heal, 1);
if( tsc && tsc->data[SC_AKAITSUKI] && heal && skill_id != HLIF_HEAL )
heal = ~heal + 1;
@@ -6751,7 +6754,8 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
status_change_end(bl, SC_SILENCE, INVALID_TIMER);
status_change_end(bl, SC_BLIND, INVALID_TIMER);
status_change_end(bl, SC_CONFUSION, INVALID_TIMER);
- clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
+ status_change_end(bl, SC_BITESCAR, INVALID_TIMER);
+ clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
break;
case TF_DETOXIFY: