mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 10:42:25 +02:00
Experimental sparkle fix
This commit is contained in:
parent
b16754e631
commit
820d51bba0
@ -27,7 +27,7 @@ export default class PokemonSpriteSparkleHandler {
|
|||||||
if (!s.visible || (s.parentContainer instanceof Pokemon && !s.parentContainer.parentContainer)) {
|
if (!s.visible || (s.parentContainer instanceof Pokemon && !s.parentContainer.parentContainer)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (s.parentContainer instanceof Pokemon && !(s.parentContainer as Pokemon).isTerastallized) {
|
if (!(s.parentContainer instanceof Pokemon) || !(s.parentContainer as Pokemon).isTerastallized) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const pokemon = s.parentContainer instanceof Pokemon ? s.parentContainer as Pokemon : null;
|
const pokemon = s.parentContainer instanceof Pokemon ? s.parentContainer as Pokemon : null;
|
||||||
|
Loading…
Reference in New Issue
Block a user