Package net.sf.l2j.gameserver.model.L2Skill

Examples of net.sf.l2j.gameserver.model.L2Skill.SkillType


    private int _negateId=0;

    @Override
  public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets)
    {
        SkillType type = skill.getSkillType();

        boolean ss = false;
        boolean sps = false;
        boolean bss = false;
View Full Code Here


    return shldRate > Rnd.get(100);
  }

  public boolean calcMagicAffected(L2Character actor, L2Character target, L2Skill skill)
  {
    SkillType type = skill.getSkillType();
    if (target.isRaid()
        && (type == SkillType.CONFUSION || type == SkillType.MUTE || type == SkillType.PARALYZE
          || type == SkillType.ROOT || type == SkillType.FEAR || type == SkillType.SLEEP
          || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF))
      return false; // these skills should have only 1/1000 chance on raid, now it's 0.
View Full Code Here

        multiplier = target.calcStat(Stats.DARK_VULN, multiplier, target, skill);
        break;
      }
     
      // Finally, calculate skilltype vulnerabilities
      SkillType type = skill.getSkillType();
     
      // For additional effects on PDAM and MDAM skills (like STUN, SHOCK, PARALYZE...)
      if (type != null && (type == SkillType.PDAM || type == SkillType.MDAM))
        type = skill.getEffectType();
View Full Code Here

  }

  public boolean calcSkillSuccess(L2Character attacker, L2Character target, L2Skill skill, boolean ss,
                  boolean sps, boolean bss)
  {
    SkillType type = skill.getSkillType();

    if (target.isRaid()
      && (type == SkillType.CONFUSION || type == SkillType.MUTE || type == SkillType.PARALYZE
        || type == SkillType.ROOT || type == SkillType.FEAR || type == SkillType.SLEEP
        || type == SkillType.STUN || type == SkillType.DEBUFF || type == SkillType.AGGDEBUFF))
View Full Code Here

    // ************************************* Check Target *******************************************
   
    // Create and set a L2Object containing the target of the skill
    L2Object target = null;
    SkillTargetType sklTargetType = skill.getTargetType();
    SkillType sklType = skill.getSkillType();
   
    switch (sklTargetType)
    {
    // Target the player if skill type is AURA, PARTY, CLAN or SELF
      case TARGET_AURA:
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.L2Skill.SkillType

Copyright © 2018 www.massapicom. 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.