SSB: Convert Distortion World to a Pseudo Weather (#5868)

This commit is contained in:
Torracat 2019-10-11 18:14:24 -04:00 committed by HoeenHero
parent 2608ca74fc
commit d3cd75ce8d
3 changed files with 3 additions and 9 deletions

View File

@ -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

View File

@ -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');

View File

@ -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);