All pastes #964708 Raw Edit

hanwik l2effect

public text v1 · immutable
#964708 ·published 2008-03-31 13:57 UTC
rendered paste body
Index: L2Effect.java
===================================================================
--- L2Effect.java	(revision 1878)
+++ L2Effect.java	(working copy)
@@ -260,8 +260,6 @@
     public void setInUse(boolean inUse)
     {
         _inUse = inUse;
-        if (_inUse) onStart();
-        else onExit();
     }
 
     public String getStackType()
@@ -414,6 +412,7 @@
         if (_state == EffectState.CREATED)
         {
             _state = EffectState.ACTING;
+            onStart();
 
             if (_skill.isPvpSkill())
             {
@@ -451,7 +450,7 @@
         if (_state == EffectState.FINISHING)
         {
             // Cancel the effect in the the abnormal effect map of the L2Character
-        	if (getInUse()) onExit();
+            onExit();
 
             //If the time left is equal to zero, send the message
             if (_count == 0)