Fixed passive effects not applied when conditions are met.
Contributed by Sahar.
This commit is contained in:
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1251,6 +1251,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1257,6 +1257,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1257,6 +1257,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -926,12 +926,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1257,6 +1257,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1286,6 +1286,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1362,6 +1362,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1362,6 +1362,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected(), true))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1355,6 +1355,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1257,6 +1257,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
+1
-1
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1257,6 +1257,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1286,6 +1286,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
+1
-1
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1362,6 +1362,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
+1
-1
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
-6
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1362,6 +1362,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
+1
-1
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected(), true))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1355,6 +1355,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
+1
-1
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
@@ -922,12 +922,6 @@ public class EffectList
|
|||||||
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
LOGGER.warning("Passive " + skill + " with abnormal type: " + skill.getAbnormalType() + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for passive skill conditions.
|
|
||||||
if (!skill.checkCondition(info.getEffector(), info.getEffected()))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove previous passives of this id.
|
// Remove previous passives of this id.
|
||||||
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
_passives.stream().filter(Objects::nonNull).filter(b -> b.getSkill().getId() == skill.getId()).forEach(b ->
|
||||||
{
|
{
|
||||||
|
|||||||
+2
@@ -1257,6 +1257,8 @@ public abstract class Inventory extends ItemContainer
|
|||||||
item.updateDatabase();
|
item.updateDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getOwner().getStat().recalculateStats(!getOwner().isPlayer());
|
||||||
|
|
||||||
if (getOwner().isPlayer())
|
if (getOwner().isPlayer())
|
||||||
{
|
{
|
||||||
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
getOwner().sendPacket(new ExUserInfoEquipSlot(getOwner().getActingPlayer()));
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ public class Skill implements IIdentifiable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && checkConditions(SkillConditionScope.PASSIVE, effector, effector))
|
if (passive)
|
||||||
{
|
{
|
||||||
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
final BuffInfo info = new BuffInfo(effector, effector, this, true, item, null);
|
||||||
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
applyEffectScope(EffectScope.GENERAL, info, false, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user