Package l2p.gameserver.skills.effects

Source Code of l2p.gameserver.skills.effects.EffectTurner

package l2p.gameserver.skills.effects;

import l2p.gameserver.model.L2Effect;
import l2p.gameserver.serverpackets.FinishRotating;
import l2p.gameserver.serverpackets.StartRotating;
import l2p.gameserver.serverpackets.SystemMessage;
import l2p.gameserver.skills.Env;

public class EffectTurner extends L2Effect
{
  public EffectTurner(Env env, EffectTemplate template)
  {
    super(env, template);
  }

  @Override
  public void onStart()
  {
    super.onStart();
    getEffected().broadcastPacket(new StartRotating(getEffected(), getEffected().getHeading(), 1, 65535));
    getEffected().broadcastPacket(new FinishRotating(getEffected(), getEffector().getHeading(), 65535));
    getEffected().setHeading(getEffector().getHeading());
    getEffected().sendPacket(new SystemMessage(SystemMessage.S1_S2S_EFFECT_CAN_BE_FELT).addSkillName(_displayId, _displayLevel));
    getEffected().startStunning();
  }

  @Override
  public void onExit()
  {
    super.onExit();
    getEffected().stopStunning();
  }

  @Override
  public boolean onActionTime()
  {
    return false;
  }
}
TOP

Related Classes of l2p.gameserver.skills.effects.EffectTurner

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.