Improve hero village detection

This commit is contained in:
2020-04-25 21:19:45 +03:00
parent 3f4534a72e
commit 2137e7e684
3 changed files with 15 additions and 4 deletions

View File

@ -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();
}
}