Procházet zdrojové kódy

BETA: Effects from skills with abnormal time -1 should last forever (until dispelled).
* Fixing flying transformations.
* Other skills should have been fixed as well.

Reported by: badboy29
Tested by Adry_85

Zoey76 před 12 roky
rodič
revize
a691f0f77a

+ 4 - 3
L2J_Server_BETA/java/com/l2jserver/gameserver/model/effects/L2Effect.java

@@ -405,12 +405,13 @@ public abstract class L2Effect implements IChanceSkillTrigger
 	}
 	
 	/**
-	 * Method called on each tick.
-	 * @return {@code true} for continuation of this effect, {@code false} otherwise
+	 * Method called on each tick.<br>
+	 * By default if the abnormal time is lesser than zero it will return {@code true}, this means the effect will last forever.
+	 * @return if {@code true} this effect will continue forever, if {@code false} it will stop after tick count is reached
 	 */
 	public boolean onActionTime()
 	{
-		return false;
+		return getAbnormalTime() < 0;
 	}
 	
 	/**