Remove all toggles when set player active class.

Thanks to Liamxroy.
This commit is contained in:
MobiusDevelopment
2022-10-16 21:42:04 +00:00
parent dbda42233c
commit 739e49bd8e
27 changed files with 75 additions and 3 deletions
@@ -9953,6 +9953,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9956,6 +9956,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9958,6 +9958,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9972,6 +9972,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9997,6 +9997,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10010,6 +10010,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10016,6 +10016,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10052,6 +10052,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10189,6 +10189,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10215,6 +10215,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10287,6 +10287,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9835,8 +9835,8 @@ public class Player extends Playable
stopAllEffectsExceptThoseThatLastThroughDeath();
stopAllEffectsNotStayOnSubclassChange();
getEffectList().stopAllToggles();
stopCubics();
restoreRecipeBook(false);
// Restore any Death Penalty Buff
@@ -10377,8 +10377,8 @@ public class Player extends Playable
stopAllEffectsExceptThoseThatLastThroughDeath();
stopAllEffectsNotStayOnSubclassChange();
getEffectList().stopAllToggles();
stopCubics();
restoreRecipeBook(false);
// Restore any Death Penalty Buff
@@ -10260,8 +10260,8 @@ public class Player extends Playable
stopAllEffectsExceptThoseThatLastThroughDeath();
stopAllEffectsNotStayOnSubclassChange();
getEffectList().stopAllToggles();
stopCubics();
restoreRecipeBook(false);
// Restore any Death Penalty Buff
@@ -9848,6 +9848,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9859,6 +9859,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9859,6 +9859,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9859,6 +9859,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9845,6 +9845,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9888,6 +9888,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9943,6 +9943,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9888,6 +9888,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9848,6 +9848,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -9844,6 +9844,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10022,6 +10022,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10077,6 +10077,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();
@@ -10297,6 +10297,9 @@ public class Player extends Playable
// stopAllEffects();
getEffectList().stopEffects(info -> !info.getSkill().isNecessaryToggle() && !info.getSkill().isIrreplacableBuff(), true, false);
// In controversy with isNecessaryToggle above, new class rewarded skills should be rewarded bellow.
getEffectList().stopAllToggles();
// Update abnormal visual effects.
sendPacket(new ExUserInfoAbnormalVisualEffect(this));
stopCubics();