Skip to content

Commit

Permalink
== NDGProtection ==
Browse files Browse the repository at this point in the history
*Fixed an issue where homunculus, elementals and mercenaries would cause a DC if they use a skill.
-Disabled protection for all skills that are not used by a player.
  • Loading branch information
15peaces committed Sep 22, 2016
1 parent c4fc951 commit 0efa937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NDGProtection_3ceam_r810(2f91709)+[15peaces].patch
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ index 4f555fb..1b8ac20 100644
struct {
int nameid;
diff --git a/rewrite/src/map/skill.c b/rewrite/src/map/skill.c
index c102c51..086e40b 100644
index c102c51..2c9c659 100644
--- a/rewrite/src/map/skill.c
+++ b/rewrite/src/map/skill.c
@@ -14483,6 +14483,9 @@ int skill_castfix (struct block_list *bl, int skill_id, int skill_lv)
Expand All @@ -84,7 +84,7 @@ index c102c51..086e40b 100644
if (time < status_get_amotion(bl))
time = status_get_amotion(bl); // Delay can never be below amotion [Playtester]

+ if(battle_config.nodelay_protect)
+ if(battle_config.nodelay_protect && skill_id < HLIF_HEAL && skill_id > EL_STONE_RAIN)
+ if (sd->state.skill_check_double){
+ time = skill_delay_penalty(skill_id);
+ sd->state.skill_check_double = 0 ;
Expand Down

0 comments on commit 0efa937

Please sign in to comment.