Sfoglia il codice sorgente

BETA: Continuing with [5945], more core cleanup.

Zoey76 12 anni fa
parent
commit
60e8dc7490

+ 0 - 41
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -3321,34 +3321,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
 		_effectList.stopAllEffectsExceptThoseThatLastThroughDeath();
 	}
 	
-	/**
-	 * Stop a specified/all Confused abnormal L2Effect.<br>
-	 * <B><U>Actions</U>:</B>
-	 * <ul>
-	 * <li>Delete a specified/all (if effect=null) Confused abnormal L2Effect from L2Character and update client magic icon</li>
-	 * <li>Set the abnormal effect flag _confused to False</li>
-	 * <li>Notify the L2Character AI</li>
-	 * <li>Send Server->Client UserInfo/CharInfo packet</li>
-	 * </ul>
-	 * @param effect
-	 */
-	public final void stopConfused(L2Effect effect)
-	{
-		if (effect == null)
-		{
-			stopEffects(L2EffectType.CONFUSION);
-		}
-		else
-		{
-			_effectList.remove(effect);
-		}
-		if (!isPlayer())
-		{
-			getAI().notifyEvent(CtrlEvent.EVT_THINK);
-		}
-		updateAbnormalEffect();
-	}
-	
 	/**
 	 * Stop and remove the L2Effects corresponding to the L2Skill Identifier and update client magic icon.<br>
 	 * <B><U>Concept</U>:</B><br>
@@ -3555,19 +3527,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
 		updateAbnormalEffect();
 	}
 	
-	public final void stopParalyze(boolean removeEffects)
-	{
-		if (removeEffects)
-		{
-			stopEffects(L2EffectType.PARALYZE);
-		}
-		
-		if (!isPlayer())
-		{
-			getAI().notifyEvent(CtrlEvent.EVT_THINK);
-		}
-	}
-	
 	/**
 	 * Stop L2Effect: Transformation.<br>
 	 * <B><U>Actions</U>:</B>

+ 0 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -10574,7 +10574,6 @@ public final class L2PcInstance extends L2Playable
 		getKnownList().removeAllKnownObjects(); // reinit knownlist
 		setXYZ(_lastX, _lastY, _lastZ);
 		setIsParalyzed(false);
-		stopParalyze(false);
 		if (!isGM())
 		{
 			getAppearance().setVisible();

+ 0 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/model/effects/L2EffectType.java

@@ -34,8 +34,6 @@ public enum L2EffectType
 	CHARM_OF_LUCK,
 	CHARMOFCOURAGE,
 	CLAN_GATE,
-	CONFUSE_MOB_ONLY,
-	CONFUSION,
 	CPDAMPERCENT,
 	CPHEAL,
 	CPHEAL_OVER_TIME,