mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Doom Desire & Future Sight Timers UI (#2574)
This commit is contained in:
parent
71341b1fba
commit
7df45ea835
|
|
@ -715,6 +715,12 @@ export class Side {
|
||||||
case 'luckychant':
|
case 'luckychant':
|
||||||
this.sideConditions[condition] = [effect.name, 1, 5, 0];
|
this.sideConditions[condition] = [effect.name, 1, 5, 0];
|
||||||
break;
|
break;
|
||||||
|
case 'futuresight':
|
||||||
|
this.sideConditions[condition] = ['Future Sight', 1, 3, 0];
|
||||||
|
break;
|
||||||
|
case 'doomdesire':
|
||||||
|
this.sideConditions[condition] = ['Doom Desire', 1, 3, 0];
|
||||||
|
break;
|
||||||
case 'stealthrock':
|
case 'stealthrock':
|
||||||
case 'spikes':
|
case 'spikes':
|
||||||
case 'toxicspikes':
|
case 'toxicspikes':
|
||||||
|
|
@ -2738,8 +2744,17 @@ export class Battle {
|
||||||
case 'reflect':
|
case 'reflect':
|
||||||
this.scene.resultAnim(poke, 'Reflect', 'good');
|
this.scene.resultAnim(poke, 'Reflect', 'good');
|
||||||
break;
|
break;
|
||||||
|
case 'futuresight':
|
||||||
|
poke.side.addSideCondition(effect, false);
|
||||||
|
this.scene.updateWeather();
|
||||||
|
break;
|
||||||
|
case 'doomdesire':
|
||||||
|
poke.side.addSideCondition(effect, false);
|
||||||
|
this.scene.updateWeather();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (!(effect.id === 'typechange' && poke.terastallized)) {
|
if (!(effect.id === 'typechange' && poke.terastallized) &&
|
||||||
|
effect.id !== 'futuresight' && effect.id !== 'doomdesire') {
|
||||||
poke.addVolatile(effect.id);
|
poke.addVolatile(effect.id);
|
||||||
}
|
}
|
||||||
this.scene.updateStatbar(poke);
|
this.scene.updateStatbar(poke);
|
||||||
|
|
@ -2838,9 +2853,13 @@ export class Battle {
|
||||||
if (effect.effectType === 'Move') {
|
if (effect.effectType === 'Move') {
|
||||||
if (effect.name === 'Doom Desire') {
|
if (effect.name === 'Doom Desire') {
|
||||||
this.scene.runOtherAnim('doomdesirehit' as ID, [poke]);
|
this.scene.runOtherAnim('doomdesirehit' as ID, [poke]);
|
||||||
|
poke.side.foe.removeSideCondition('Doom Desire');
|
||||||
|
this.scene.updateWeather();
|
||||||
}
|
}
|
||||||
if (effect.name === 'Future Sight') {
|
if (effect.name === 'Future Sight') {
|
||||||
this.scene.runOtherAnim('futuresighthit' as ID, [poke]);
|
this.scene.runOtherAnim('futuresighthit' as ID, [poke]);
|
||||||
|
poke.side.foe.removeSideCondition('Future Sight');
|
||||||
|
this.scene.updateWeather();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3068,6 +3087,8 @@ export class Battle {
|
||||||
case 'lightscreen':
|
case 'lightscreen':
|
||||||
case 'safeguard':
|
case 'safeguard':
|
||||||
case 'mist':
|
case 'mist':
|
||||||
|
case 'futuresight':
|
||||||
|
case 'doomdesire':
|
||||||
case 'gmaxwildfire':
|
case 'gmaxwildfire':
|
||||||
case 'gmaxvolcalith':
|
case 'gmaxvolcalith':
|
||||||
case 'gmaxvinelash':
|
case 'gmaxvinelash':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user