Fixed CharEffectList exceeded effect limitation method.
This commit is contained in:
parent
d265813c40
commit
77b0300712
@ -535,20 +535,32 @@ public final class CharEffectList
|
||||
{
|
||||
case TRIGGER:
|
||||
{
|
||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
||||
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case DANCE:
|
||||
{
|
||||
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT);
|
||||
if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// case TOGGLE: Do toggles have limit?
|
||||
case DEBUFF:
|
||||
{
|
||||
return (_debuffCount.get() > 24);
|
||||
if (_debuffCount.get() > 24)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case BUFF:
|
||||
{
|
||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
||||
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
||||
{
|
||||
case TRIGGER:
|
||||
{
|
||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
||||
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case DANCE:
|
||||
{
|
||||
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT);
|
||||
if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// case TOGGLE: Do toggles have limit?
|
||||
case DEBUFF:
|
||||
{
|
||||
return (_debuffCount.get() > 24);
|
||||
if (_debuffCount.get() > 24)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case BUFF:
|
||||
{
|
||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
||||
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
||||
{
|
||||
case TRIGGER:
|
||||
{
|
||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
||||
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case DANCE:
|
||||
{
|
||||
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT);
|
||||
if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// case TOGGLE: Do toggles have limit?
|
||||
case DEBUFF:
|
||||
{
|
||||
return (_debuffCount.get() > 24);
|
||||
if (_debuffCount.get() > 24)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case BUFF:
|
||||
{
|
||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
||||
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
||||
{
|
||||
case TRIGGER:
|
||||
{
|
||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
||||
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case DANCE:
|
||||
{
|
||||
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT);
|
||||
if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// case TOGGLE: Do toggles have limit?
|
||||
case DEBUFF:
|
||||
{
|
||||
return (_debuffCount.get() > 24);
|
||||
if (_debuffCount.get() > 24)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case BUFF:
|
||||
{
|
||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
||||
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
||||
{
|
||||
case TRIGGER:
|
||||
{
|
||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
||||
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case DANCE:
|
||||
{
|
||||
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT);
|
||||
if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// case TOGGLE: Do toggles have limit?
|
||||
case DEBUFF:
|
||||
{
|
||||
return (_debuffCount.get() > 24);
|
||||
if (_debuffCount.get() > 24)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case BUFF:
|
||||
{
|
||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
||||
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
||||
{
|
||||
case TRIGGER:
|
||||
{
|
||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
||||
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case DANCE:
|
||||
{
|
||||
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT);
|
||||
if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// case TOGGLE: Do toggles have limit?
|
||||
case DEBUFF:
|
||||
{
|
||||
return (_debuffCount.get() > 24);
|
||||
if (_debuffCount.get() > 24)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case BUFF:
|
||||
{
|
||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
||||
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
||||
{
|
||||
case TRIGGER:
|
||||
{
|
||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
||||
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case DANCE:
|
||||
{
|
||||
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT);
|
||||
if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// case TOGGLE: Do toggles have limit?
|
||||
case DEBUFF:
|
||||
{
|
||||
return (_debuffCount.get() > 24);
|
||||
if (_debuffCount.get() > 24)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
case BUFF:
|
||||
{
|
||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
||||
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user