Skip to content

Commit

Permalink
last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV committed May 4, 2024
1 parent 35fac06 commit e400878
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools/build-indexes
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const rootDir = path.resolve(__dirname, '..');
process.chdir(rootDir);

if (!fs.existsSync('caches/pokemon-showdown')) {
child_process.execSync('git clone https://github.com/ps-ssb/pokemon-showdown.git', {
child_process.execSync('git clone https://github.com/smogon/pokemon-showdown.git', {
cwd: 'caches',
});
}
Expand Down
7 changes: 7 additions & 0 deletions play.pokemonshowdown.com/src/battle-tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ class BattleTooltips {
* cover up buttons above the hovered button.
*/
let ownHeight = !!elem.dataset.ownheight;
if (this.battle.id.includes('superstaffbros')) {
this.dex = Dex.mod('gen9ssb' as ID);
}

let buf: string;
switch (type) {
Expand Down Expand Up @@ -539,6 +542,9 @@ class BattleTooltips {

let zEffect = '';
let foeActive = pokemon.side.foe.active;
if (this.battle.id.includes('superstaffbros')) {
this.dex = Dex.mod('gen9ssb' as ID);
}
if (this.battle.gameType === 'freeforall') {
foeActive = [...foeActive, ...pokemon.side.active].filter(active => active !== pokemon);
}
Expand Down Expand Up @@ -2219,6 +2225,7 @@ class BattleTooltips {

// SSB
if (this.battle.tier.includes("Super Staff Bros")) {
this.dex = Dex.mod('gen9ssb' as ID);
if (move.id === 'bodycount') {
value.set(50 + 50 * pokemon.side.faintCounter,
pokemon.side.faintCounter > 0
Expand Down

0 comments on commit e400878

Please sign in to comment.