Skip to content

Commit 6361e25

Browse files
committed
AFD Mode: Fix the ability to turn it off
1 parent e145abc commit 6361e25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

play.pokemonshowdown.com/src/battle-dex.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ const Dex = new class implements ModdedDex {
602602
if (options.shiny && mechanicsGen > 1) dir += '-shiny';
603603

604604
// April Fool's 2014
605-
if (window.Config?.server?.afd || Dex.prefs('afd') || options.afd) {
605+
if (Dex.prefs('afd') !== false && (window.Config?.server?.afd || Dex.prefs('afd') || options.afd)) {
606+
// Explicit false check above means AFD will be off if the user disables it - no matter what
606607
dir = 'afd' + dir;
607608
spriteData.url += dir + '/' + name + '.png';
608609
// Duplicate code but needed to make AFD tinymax work

0 commit comments

Comments
 (0)