| | |
| | | SysNotifyMgr.Instance.ShowTip("HeroGift3"); |
| | | return; |
| | | } |
| | | |
| | | var hero = HeroManager.Instance.GetHero(HeroUIManager.Instance.selectHeroGuidForGiftFunc); |
| | | //洗炼和觉醒的天赋未处理不可吞噬 |
| | | if (hero.talentRandomIDList.Count > 0 ) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("HeroGift4"); |
| | | return; |
| | | } |
| | | |
| | | if (hero.talentAwakeRandomIDList.Count > 0) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("HeroGift5"); |
| | | return; |
| | | } |
| | | |
| | | var eatHero = HeroManager.Instance.GetHero(HeroUIManager.Instance.selectEatHeroGuid); |
| | | if (hero == null || eatHero == null) |
| | | return; |
| | |
| | | HeroUIManager.Instance.selectHeroGuidForGiftFuncForSuccessWin = HeroUIManager.Instance.selectHeroGuidForGiftFunc; |
| | | HeroUIManager.Instance.heroBeforeGiftIDList = new List<int>(hero.talentIDList); |
| | | HeroUIManager.Instance.heroBeforeGiftLevelList = new List<int>(hero.talentLvList); |
| | | HeroUIManager.Instance.lastFightPower = new KeyValuePair<string, long>(hero.itemHero.guid, hero.CalculatePower(false)); |
| | | |
| | | //设置个等待回复的标识 显示成功界面 |
| | | HeroUIManager.Instance.waitResponse = new WaitHeroFuncResponse() |