Package l2p.gameserver.skills.inits

Source Code of l2p.gameserver.skills.inits.Init_rShld

package l2p.gameserver.skills.inits;

import l2p.gameserver.model.L2Character;
import l2p.gameserver.skills.Env;

public final class Init_rShld extends InitFunc
{
  @Override
  public void calc(Env env)
  {
    L2Character cha = env.character;
    if(cha == null || cha.isPlayer())
    {
      env.value = 0.;
    }
    else
    {
      env.value = cha.getTemplate().baseShldRate;
    }
  }
}
TOP

Related Classes of l2p.gameserver.skills.inits.Init_rShld

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.