Procházet zdrojové kódy

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 před 10 roky
rodič
revize
e2ae91db0e
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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