Exemplo n.º 1
0
 @Override
 protected int chooseSkillToUseItOnSomeBitch(L2FpInstance player, L2Character enemy) {
   if (!isCurrentHpLowerThan(enemy, 90) && !enemy.isRaid() && !player.isMoving())
     return TRIPLE_SLASH;
   L2Effect effectVS = player.getFirstEffect(VICIOUS_STANCE);
   if (isCurrentHpLowerThan(player, 50) || getMyAttackersCount(player) > 2) {
     if (effectVS == null) {
       return VICIOUS_STANCE;
     }
   } else if (effectVS != null) {
     effectVS.exit();
   }
   return 0;
 }
Exemplo n.º 2
0
 @Override
 protected int chooseSkillToUseItOnSomeBitch(L2FpInstance player, L2Character enemy) {
   L2Effect effectVS = player.getFirstEffect(VICIOUS_STANCE);
   if (isCurrentHpLowerThan(player, 60) || getMyAttackersCount(player) > 2) {
     if (effectVS == null) {
       return VICIOUS_STANCE;
     }
   } else if (effectVS != null) {
     effectVS.exit();
   }
   if (!isCurrentHpLowerThan(enemy, 80) && player.isBehind(enemy) && !player.isMoving())
     return BACKSTAB;
   if ((!isCurrentHpLowerThan(enemy, 80) || isCurrentHpLowerThan(player, 50))
       && !player.isMoving()) {
     if (Rnd.get(2) == 0) return CRITICAL_BLOW;
     else return DEADLY_BLOW;
   }
   return 0;
 }