Examples of SkillType


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

    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

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

  }

  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

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

          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

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

    }
   
    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

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

      }
     
      //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

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

    }
   
    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

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

    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

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

   
    //************************************* 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

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

                    + 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

Examples of l2p.gameserver.model.L2Skill.SkillType

    }
    if(actor.isMuted(sk))
    {
      return false;
    }
    SkillType st = sk.getSkillType();
    if(st == SkillType.CANCEL && !Rnd.chance(target.getEffectList().getAllCancelableEffectsCount(-1) * 20))
    {
      return false;
    }
    int castRange = sk.getAOECastRange();
View Full Code Here
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.