Hi again. I'm having an issue with one of my states and after some testing found it was incompatible with this Parry plug-in. Honestly not sure what could be causing the issue.
Below is the state's notebox; basically it blocks a physical skill of a pre-defined skill type. Any idea what could be causing it/how to fix it?
<custom select="" effect=""> // Check if this action is a skill and targets an opponent. if (this.item() && DataManager.isSkill(this.item()) && this.isForOpponent()) { // Create a pool of blocked Skill TYPES. var blockedtypes = []; // Add the skill type ID's to that pool. blockedtypes.push(2, 3, 5, 7, 8, 10, 11, 13, 14); // Create a pool of blocked individual skills. var blockedskills = []; // Add the individual skill ID's to that pool. blockedskills.push(1, 3, 4, 5, 8, 9, 200, 201, 202, 203, 204, 205, 206, 208, 209); blockedskills.push(56, 125, 300, 407); // Check if the skill type or skill ID matches. if (blockedtypes.contains(this.item().stypeId) || blockedskills.contains(this.item().id)) { // If it does, then store the skill's original success rate. this._formerItemSuccessRate = this.item().successRate; // Now drop the skill's success rate to 0. this.item().successRate = 0; // Start an animation to show the spell shield occurred. target.startAnimation(53); } } </custom> <custom deselect="" effect=""> // Check if there is a success rate stored. if (this._formerItemSuccessRate !== undefined) { // Restore the skill's success rate. this.item().successRate = this._formerItemSuccessRate; // Remove this spell shield state. target.removeState(stateId); } </custom>