Improve hero village detection
This commit is contained in:
@ -4,6 +4,7 @@ import { Task } from '../Queue/TaskQueue';
|
||||
import { grabVillageList } from '../Page/VillageBlock';
|
||||
import { grabHeroVillage } from '../Page/HeroPage';
|
||||
import { path } from '../utils';
|
||||
import { HeroState } from '../State/HeroState';
|
||||
|
||||
@registerAction
|
||||
export class GoToHeroVillageAction extends ActionController {
|
||||
@ -24,6 +25,6 @@ export class GoToHeroVillageAction extends ActionController {
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
return new HeroState().getVillageId();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user