CubicMastery.java 985 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package handlers.effecthandlers;
  2. import com.l2jserver.gameserver.model.StatsSet;
  3. import com.l2jserver.gameserver.model.conditions.Condition;
  4. import com.l2jserver.gameserver.model.effects.AbstractEffect;
  5. import com.l2jserver.gameserver.model.effects.L2EffectType;
  6. import com.l2jserver.gameserver.model.skills.BuffInfo;
  7. /**
  8. * Cubic Mastery effect implementation.
  9. * @author Zoey76
  10. */
  11. public final class CubicMastery extends AbstractEffect
  12. {
  13. public CubicMastery(Condition attachCond, Condition applyCond, StatsSet set, StatsSet params)
  14. {
  15. super(attachCond, applyCond, set, params);
  16. }
  17. @Override
  18. public boolean canStart(BuffInfo info)
  19. {
  20. return (info.getEffector() != null) && (info.getEffected() != null) && info.getEffected().isPlayer();
  21. }
  22. @Override
  23. public L2EffectType getEffectType()
  24. {
  25. return L2EffectType.CUBIC_MASTERY;
  26. }
  27. @Override
  28. public boolean onActionTime(BuffInfo info)
  29. {
  30. return info.getSkill().isPassive();
  31. }
  32. }