Skip to content

Instantly share code, notes, and snippets.

@Sdwz
Created April 28, 2014 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sdwz/11372349 to your computer and use it in GitHub Desktop.
Save Sdwz/11372349 to your computer and use it in GitHub Desktop.
Index: java/com/l2jserver/gameserver/model/CharEffectList.java
===================================================================
--- java/com/l2jserver/gameserver/model/CharEffectList.java (révision 545)
+++ java/com/l2jserver/gameserver/model/CharEffectList.java (copie de travail)
@@ -799,6 +799,18 @@
}
}
+ if (hasDebuffs())
+ {
+ for (BuffInfo info : getDebuffs().values())
+ {
+ if ((info != null) && !info.getSkill().isStayAfterDeath())
+ {
+ stopAndRemove(info, getDebuffs());
+ update = true;
+ }
+ }
+ }
+
// Update effect flags and icons.
updateEffectList(update);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment