mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-10-02 22:28:02 -05:00
SSB: Prevent transformations into the same forme (#8044)
This commit is contained in:
@@ -1769,7 +1769,9 @@ export const Moves: {[k: string]: ModdedMoveData} = {
|
||||
this.boost(oppBoost, target);
|
||||
target.trySetStatus('tox', source);
|
||||
if (source.species.baseSpecies === 'Alcremie') {
|
||||
const newSet = ['Finland', 'Finland-Tsikhe', 'Finland-Nezavisa', 'Finland-Järvilaulu'][this.random(4)];
|
||||
const formes = ['Finland', 'Finland-Tsikhe', 'Finland-Nezavisa', 'Finland-Järvilaulu']
|
||||
.filter(forme => ssbSets[forme].species !== source.species.name);
|
||||
const newSet = this.sample(formes);
|
||||
changeSet(this, source, ssbSets[newSet]);
|
||||
}
|
||||
},
|
||||
@@ -5106,7 +5108,8 @@ export const Moves: {[k: string]: ModdedMoveData} = {
|
||||
this.attrLastMove('[still]');
|
||||
},
|
||||
onPrepareHit(foe, source, move) {
|
||||
const formes = ['Cleric', 'Ninja', 'Dancer', 'Songstress', 'Jester'];
|
||||
const formes = ['Cleric', 'Ninja', 'Dancer', 'Songstress', 'Jester']
|
||||
.filter(forme => ssbSets[`yuki-${forme}`].species !== source.species.name);
|
||||
source.m.yukiCosplayForme = this.sample(formes);
|
||||
switch (source.m.yukiCosplayForme) {
|
||||
case 'Cleric':
|
||||
|
||||
Reference in New Issue
Block a user