Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # COUNTER-CLOCKWISE SPIRAL (ABILITY)
- counterclockwisespiral: {
- desc: "On switch-in, the field becomes Trick Room. This room remains in effect until this Ability is no longer active for any Pokémon.",
- shortDesc: "On switch-in, Trick Room begins until this Ability is not active in battle.",
- onStart(source) {
- this.field.removePseudoWeather('trickroom');
- this.field.addPseudoWeather('trickroom');
- },
- onAnyTryMove(target, source, effect) {
- if (['trickroom'].includes(effect.id)) {
- this.attrLastMove('[still]');
- this.add('cant', this.effectData.target, 'ability: Counter-Clockwise Spiral', effect, '[of] ' + target);
- return false;
- }
- },
- onEnd(pokemon) {
- if (this.field.pseudoWeatherData.source !== pokemon) return;
- for (const target of this.getAllActive()) {
- if (target === pokemon) continue;
- if (target.hasAbility('counterclockwisespiral')) {
- this.field.pseudoWeatherData.source = target;
- return;
- }
- }
- this.field.removePseudoWeather('trickroom');
- },
- name: "Counter-Clockwise Spiral",
- rating: 4.5,
- num: -1011,
- },
- # TRICK ROOM (MOVE)
- trickroom: {
- num: 433,
- accuracy: true,
- basePower: 0,
- category: "Status",
- desc: "For 5 turns, the Speed of every Pokemon is recalculated for the purposes of determining turn order. During the effect, each Pokemon's Speed is considered to be (10000 - its normal Speed), and if this value is greater than 8191, 8192 is subtracted from it. If this move is used during the effect, the effect ends.",
- shortDesc: "Goes last. For 5 turns, turn order is reversed.",
- name: "Trick Room",
- pp: 5,
- priority: -7,
- flags: {mirror: 1},
- pseudoWeather: 'trickroom',
- effect: {
- duration: 5,
- durationCallback(source, effect) {
- if (source?.hasAbility('persistent')) {
- this.add('-activate', source, 'ability: Persistent', effect);
- return 7;
- }
- if (source?.hasAbility('counterclockwisespiral')) {
- this.add('-activate', source, 'ability: Counter-Clockwise Spiral', effect);
- return 0;
- }
- return 5;
- },
- onStart(target, source) {
- this.add('-fieldstart', 'move: Trick Room', '[of] ' + source);
- },
- onRestart(target, source) {
- this.field.removePseudoWeather('trickroom');
- },
- // Speed modification is changed in Pokemon.getActionSpeed() in sim/pokemon.js
- onResidualOrder: 23,
- onEnd() {
- this.add('-fieldend', 'move: Trick Room');
- },
- },
- secondary: null,
- target: "all",
- type: "Psychic",
- zMove: {boost: {accuracy: 1}},
- contestType: "Clever",
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement