Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //when the state sticks...
- <Custom Apply Effect>
- //initialize maximum number of evaded attacks
- var attEva = x;
- //set counter to variable attEva
- target.setStateCounter(stateId, attEva);
- </Custom Apply Effect>
- //after accuracy checks...
- <Custom React Effect>
- //if attack is physical...
- if (this.isPhysical()) {
- //force a dodge
- target.result().evaded = true;
- //decrement counter by one
- target.addStateCounter(stateId, -1);
- //if counter is zero...
- if (target.getStateCounter(stateId) <= 0) {
- //nuke the counter
- target.removeStateCounter(stateId);
- //remove the state
- target.removeState(stateId);
- }
- }
- </Custom React Effect>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement