Package com.l2jfrozen.gameserver.model.L2Skill

Examples of com.l2jfrozen.gameserver.model.L2Skill.SkillType


  private int _negateId = 0;

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

    boolean bss = activeChar.checkBss();
    boolean sps = activeChar.checkSps();
    boolean ss = activeChar.checkSs();
 
View Full Code Here


    double effectPower = -1;
    if (attrs.getNamedItem("effectPower") != null)
      effectPower = Double.parseDouble( getValue(attrs.getNamedItem("effectPower").getNodeValue(), template));
   
    SkillType type = null;
    if (attrs.getNamedItem("effectType") != null)
    {
      String typeName = getValue(attrs.getNamedItem("effectType").getNodeValue(), template);
     
      try
View Full Code Here

  }

  public boolean calcMagicAffected(L2Character actor, L2Character target, L2Skill skill)
  {
    // TODO: CHECK/FIX THIS FORMULA UP!!
    SkillType type = skill.getSkillType();
    double defence = 0;
    if(skill.isActive() && skill.isOffensive())
    {
      defence = target.getMDef(actor, skill);
    }
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

    }
   
    if (target.calcStat(Stats.DEBUFF_IMMUNITY, 0, null, skill) > 0 && skill.is_Debuff())
      return false;
   
    SkillType type = skill.getSkillType();
   
    // these skills should not work on RaidBoss
    if (target.isRaid())
    {
      switch (type)
View Full Code Here

      }
     
      //no soulshots influence over not magic attacks
    }*/
   
    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 not work on RaidBoss

    if(target.isInvul() && (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.CANCEL || type == SkillType.NEGATE || type == SkillType.WARRIOR_BANE || type == SkillType.MAGE_BANE))
View Full Code Here

    }
   
    if (target.calcStat(Stats.DEBUFF_IMMUNITY, 0, null, skill) > 0 && skill.is_Debuff())
      return false;
   
    final SkillType type = effect.effectType;
    final int value = (int)effect.effectPower;
    if (type == null)
    {
      return Rnd.get(100) < value;
    }
    else if (type.equals(SkillType.CANCEL)) // CANCEL-type effects land always
      return true;
   
    double statModifier = calcSkillStatModifier(skill, target);
   
    // Calculate BaseRate.
View Full Code Here

    for (String negateSkillType : skill.getNegateSkillTypes())
    {
      if(Config.DEBUG)
        _log.fine("effectNegate on Type "+negateSkillType +" with power "+skill.getPower());
     
      SkillType type = null;
      try{
        type = SkillType.valueOf(negateSkillType);
      }catch(Exception e){
        //
      }
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

                    + Math.sqrt(target.getDistanceSq(owner.getX(), owner.getY(), owner.getZ())));
              }
             
              owner.broadcastPacket(new MagicSkillUser(owner, target, skill.getId(), skill.getLevel(), 0, 0));
             
              SkillType type = skill.getSkillType();
              ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType());
              L2Character[] targets = { target };
             
              if ((type == SkillType.PARALYZE) || (type == SkillType.STUN)
                  || (type == SkillType.ROOT)
View Full Code Here

TOP

Related Classes of com.l2jfrozen.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.