Effect list flags should consider passives as well.
This commit is contained in:
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
@ -1125,6 +1125,18 @@ public final class CharEffectList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Add passive effect flags.
|
||||||
|
for (BuffInfo info : _passives)
|
||||||
|
{
|
||||||
|
if (info != null)
|
||||||
|
{
|
||||||
|
// Add the EffectType flag.
|
||||||
|
for (AbstractEffect e : info.getEffects())
|
||||||
|
{
|
||||||
|
flags |= e.getEffectFlags();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Replace the old flags with the new flags.
|
// Replace the old flags with the new flags.
|
||||||
_effectFlags = flags;
|
_effectFlags = flags;
|
||||||
|
Reference in New Issue
Block a user