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:
|
case TRIGGER:
|
||||||
{
|
{
|
||||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case DANCE:
|
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 TOGGLE: Do toggles have limit?
|
||||||
case DEBUFF:
|
case DEBUFF:
|
||||||
{
|
{
|
||||||
return (_debuffCount.get() > 24);
|
if (_debuffCount.get() > 24)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case BUFF:
|
case BUFF:
|
||||||
{
|
{
|
||||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
|||||||
{
|
{
|
||||||
case TRIGGER:
|
case TRIGGER:
|
||||||
{
|
{
|
||||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case DANCE:
|
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 TOGGLE: Do toggles have limit?
|
||||||
case DEBUFF:
|
case DEBUFF:
|
||||||
{
|
{
|
||||||
return (_debuffCount.get() > 24);
|
if (_debuffCount.get() > 24)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case BUFF:
|
case BUFF:
|
||||||
{
|
{
|
||||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
|||||||
{
|
{
|
||||||
case TRIGGER:
|
case TRIGGER:
|
||||||
{
|
{
|
||||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case DANCE:
|
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 TOGGLE: Do toggles have limit?
|
||||||
case DEBUFF:
|
case DEBUFF:
|
||||||
{
|
{
|
||||||
return (_debuffCount.get() > 24);
|
if (_debuffCount.get() > 24)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case BUFF:
|
case BUFF:
|
||||||
{
|
{
|
||||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
|||||||
{
|
{
|
||||||
case TRIGGER:
|
case TRIGGER:
|
||||||
{
|
{
|
||||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case DANCE:
|
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 TOGGLE: Do toggles have limit?
|
||||||
case DEBUFF:
|
case DEBUFF:
|
||||||
{
|
{
|
||||||
return (_debuffCount.get() > 24);
|
if (_debuffCount.get() > 24)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case BUFF:
|
case BUFF:
|
||||||
{
|
{
|
||||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
|||||||
{
|
{
|
||||||
case TRIGGER:
|
case TRIGGER:
|
||||||
{
|
{
|
||||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case DANCE:
|
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 TOGGLE: Do toggles have limit?
|
||||||
case DEBUFF:
|
case DEBUFF:
|
||||||
{
|
{
|
||||||
return (_debuffCount.get() > 24);
|
if (_debuffCount.get() > 24)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case BUFF:
|
case BUFF:
|
||||||
{
|
{
|
||||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
|||||||
{
|
{
|
||||||
case TRIGGER:
|
case TRIGGER:
|
||||||
{
|
{
|
||||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case DANCE:
|
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 TOGGLE: Do toggles have limit?
|
||||||
case DEBUFF:
|
case DEBUFF:
|
||||||
{
|
{
|
||||||
return (_debuffCount.get() > 24);
|
if (_debuffCount.get() > 24)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case BUFF:
|
case BUFF:
|
||||||
{
|
{
|
||||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -535,20 +535,32 @@ public final class CharEffectList
|
|||||||
{
|
{
|
||||||
case TRIGGER:
|
case TRIGGER:
|
||||||
{
|
{
|
||||||
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT);
|
if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case DANCE:
|
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 TOGGLE: Do toggles have limit?
|
||||||
case DEBUFF:
|
case DEBUFF:
|
||||||
{
|
{
|
||||||
return (_debuffCount.get() > 24);
|
if (_debuffCount.get() > 24)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case BUFF:
|
case BUFF:
|
||||||
{
|
{
|
||||||
return (getBuffCount() > _owner.getStat().getMaxBuffCount());
|
if (getBuffCount() > _owner.getStat().getMaxBuffCount())
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user