Skip to content

Commit

Permalink
Updated Illusion - Death effect
Browse files Browse the repository at this point in the history
* Curse duration is not reduced by VIT.
* Cannot kill the target when lowering HP.
  • Loading branch information
aleos89 committed Feb 12, 2016
1 parent e3667f4 commit c9fde76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map/skill.c
Expand Up @@ -10391,8 +10391,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
if( dstsd && tsc && !tsc->data[type] &&
rnd()%100 < ((45+5*skill_lv) + skill_lv*5 - status_get_int(bl)/2) ){//[(Base chance of success) + (Skill Level x 5) - (int / 2)]%.
clif_skill_nodamage(src,bl,skill_id,skill_lv,
status_change_start(src,bl,type,10000,skill_lv,0,0,0,skill_get_time(skill_id,skill_lv),SCSTART_NOAVOID));
status_zap(bl, tstatus->max_hp*skill_lv*5/100 , 0);
status_change_start(src,bl,type,10000,skill_lv,0,0,0,skill_get_time(skill_id,skill_lv),SCSTART_NOAVOID|SCSTART_NOTICKDEF));
status_percent_damage(src, bl, tstatus->hp * skill_lv * 5, 0, false); // Does not kill the target.
if( status_get_lv(bl) <= status_get_lv(src) )
status_change_start(src,bl,SC_COMA,10,skill_lv,0,src->id,0,0,SCSTART_NONE);
}else if( sd )
Expand Down

0 comments on commit c9fde76

Please sign in to comment.