Removed stream usage from CriticalRate effect.
This commit is contained in:
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,11 +18,12 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
* @author Sdw, Mobius
|
||||
*/
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
@@ -34,8 +35,17 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
@Override
|
||||
public void pump(Creature effected, Skill skill)
|
||||
{
|
||||
if (_conditions.isEmpty() || _conditions.stream().allMatch(cond -> cond.test(effected, effected, skill)))
|
||||
if (!_conditions.isEmpty())
|
||||
{
|
||||
for (Condition cond : _conditions)
|
||||
{
|
||||
if (!cond.test(effected, effected, skill))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case DIFF:
|
||||
@@ -51,4 +61,3 @@ public class CriticalRate extends AbstractConditionalHpEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user