浏览代码

Made Light of Regene work.

Straight up copied the code from Pyroclastic, as the original skill code for Light of Regen was not applying the status effect to the player. Seems to work just fine, not sure if that second sc_start2 can just be deleted.
RagnarokNova 10 年之前
父节点
当前提交
e2ae91db0e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/map/skill.c

+ 2 - 0
src/map/skill.c

@@ -10170,6 +10170,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
 	     break;
 	case MH_LIGHT_OF_REGENE: //self
 		if(hd) {
+			struct block_list *s_bl = battle_get_master(src);
+			if(s_bl) sc_start2(src, s_bl, type, 100, skill_lv, hd->homunculus.level, skill_get_time(skill_id, skill_lv));
 			sc_start2(src, src, type, 100, skill_lv, hd->homunculus.level, skill_get_time(skill_id, skill_lv));
 			hd->homunculus.intimacy = 25100; //change to neutral (can't be cast if < 750)
 			if(sd) clif_send_homdata(sd, SP_INTIMATE, hd->homunculus.intimacy); //refresh intimacy info