// Assuming there is a boolean variable to track the state of the Fake Death effectprivate boolean fakeDeathActive = false;// Inside your method or classif (skill.getId() == 60 /* Fake Death */) { if (fakeDeathActive) { // If Fake Death is already active, exit the effect (stand up) effect.exit(false); fakeDeathActive = false; // Update the state to indicate it's no longer active } else { // If Fake Death is not active, perform the usual logic to handle the effect // (You may want to keep the existing logic here) // ... // Set the state to indicate that Fake Death is now active fakeDeathActive = true; }}
@Override public void doCast(Skill skill) { if(skill.getId() == 60 && isFakeDeath()) { standUp(); return; } //Rest of the code