mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
SSB: Convert Distortion World to a Pseudo Weather (#5868)
This commit is contained in:
parent
2608ca74fc
commit
d3cd75ce8d
|
|
@ -173,7 +173,7 @@ let BattleAbilities = {
|
|||
name: "Distortion World",
|
||||
isNonstandard: "Custom",
|
||||
onStart() {
|
||||
this.field.setTerrain('distortionworld');
|
||||
this.field.addPseudoWeather('distortionworld');
|
||||
},
|
||||
},
|
||||
// A Quag To The Past
|
||||
|
|
|
|||
|
|
@ -561,15 +561,9 @@ let BattleMovedex = {
|
|||
this.add('-anim', source, 'Dark Void', source);
|
||||
this.add('-anim', target, 'Dark Void', target);
|
||||
},
|
||||
terrain: 'distortionworld',
|
||||
pseudoWeather: 'distortionworld',
|
||||
effect: {
|
||||
duration: 5,
|
||||
durationCallback(source, effect) {
|
||||
if (source && source.hasItem('terrainextender')) {
|
||||
return 8;
|
||||
}
|
||||
return 5;
|
||||
},
|
||||
onBasePower(basePower, attacker, defender, move) {
|
||||
if (move.type === 'Ghost') {
|
||||
this.debug('distortion world boost');
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ let BattleScripts = {
|
|||
!(this.battle.field.getPseudoWeather('trickroom') && this.battle.field.getPseudoWeather('alienwave'))) {
|
||||
speed = 0x2710 - speed;
|
||||
}
|
||||
if (this.battle.field.isTerrain('distortionworld')) {
|
||||
if (this.battle.field.getPseudoWeather('distortionworld')) {
|
||||
speed = 0; // Anything times 0 is still 0
|
||||
}
|
||||
return this.battle.trunc(speed, 13);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user