|
@@ -38,7 +38,6 @@ import com.l2jserver.gameserver.model.actor.L2Attackable;
|
|
import com.l2jserver.gameserver.model.actor.L2Character;
|
|
import com.l2jserver.gameserver.model.actor.L2Character;
|
|
import com.l2jserver.gameserver.model.actor.L2Playable;
|
|
import com.l2jserver.gameserver.model.actor.L2Playable;
|
|
import com.l2jserver.gameserver.model.effects.L2Effect;
|
|
import com.l2jserver.gameserver.model.effects.L2Effect;
|
|
-import com.l2jserver.gameserver.model.effects.L2EffectType;
|
|
|
|
import com.l2jserver.gameserver.model.entity.TvTEvent;
|
|
import com.l2jserver.gameserver.model.entity.TvTEvent;
|
|
import com.l2jserver.gameserver.model.entity.TvTEventTeam;
|
|
import com.l2jserver.gameserver.model.entity.TvTEventTeam;
|
|
import com.l2jserver.gameserver.model.skills.L2Skill;
|
|
import com.l2jserver.gameserver.model.skills.L2Skill;
|
|
@@ -868,36 +867,6 @@ public final class L2CubicInstance
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- default:
|
|
|
|
- {
|
|
|
|
- if (skill.hasEffectType(L2EffectType.CANCEL_DEBUFF))
|
|
|
|
- {
|
|
|
|
- L2Effect[] effects = target.getAllEffects();
|
|
|
|
-
|
|
|
|
- if ((effects == null) || (effects.length == 0))
|
|
|
|
- {
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- int count = (skill.getMaxNegatedEffects() > 0) ? 0 : -2;
|
|
|
|
- for (L2Effect e : effects)
|
|
|
|
- {
|
|
|
|
- if (e.getSkill().isDebuff() && (count < skill.getMaxNegatedEffects()))
|
|
|
|
- {
|
|
|
|
- // Do not remove raid curse skills
|
|
|
|
- if ((e.getSkill().getId() != 4215) && (e.getSkill().getId() != 4515) && (e.getSkill().getId() != 4082))
|
|
|
|
- {
|
|
|
|
- e.exit();
|
|
|
|
- if (count > -1)
|
|
|
|
- {
|
|
|
|
- count++;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|