mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-08-11 05:09:12 +00:00
🐛 fix quest triggering twice
This commit is contained in:
parent
3f374836ee
commit
62897456ac
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ import { MapId } from "../maps/map-types";
|
|||
import useBadges from "./use-badges";
|
||||
import {
|
||||
completeQuest,
|
||||
moveLeft,
|
||||
selectCompletedQuests,
|
||||
selectPos,
|
||||
setPos,
|
||||
|
@ -47,6 +48,7 @@ const useQuests = () => {
|
|||
"Follow me!",
|
||||
],
|
||||
action: () => {
|
||||
dispatch(moveLeft());
|
||||
dispatch(setBlackScreen(true));
|
||||
setTimeout(() => {
|
||||
dispatch(setPos({ x: 14, y: 19 }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue