Cubic heal trigger based on target HP.
This commit is contained in:
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,10 @@ public class CubicInstance
|
|||||||
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
final L2Character target = stream.sorted(Comparator.comparingInt(L2Character::getCurrentHpPercent)).findFirst().orElse(null);
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
activateCubicSkill(skill, target);
|
if (Rnd.nextDouble() > (target.getCurrentHp() / target.getMaxHp()))
|
||||||
|
{
|
||||||
|
activateCubicSkill(skill, target);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user