Package l2p.gameserver.skills.effects

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

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 EffectBluff extends L2Effect
{
  public EffectBluff(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());
  }

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

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

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.