| | |
| | | }
|
| | | else
|
| | | {
|
| | | if ((bossInfos[bossId].refreshTime - DateTime.Now).TotalSeconds < PREPOSE_SECONDS)
|
| | | if ((bossInfos[bossId].refreshTime - TimeUtility.ServerNow).TotalSeconds < PREPOSE_SECONDS)
|
| | | {
|
| | | AddOneBossRebornNotify(bossId);
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (IsBossAlive(bossId) || (bossInfos[bossId].refreshTime - DateTime.Now).TotalSeconds < PREPOSE_SECONDS)
|
| | | if (IsBossAlive(bossId) || (bossInfos[bossId].refreshTime - TimeUtility.ServerNow).TotalSeconds < PREPOSE_SECONDS)
|
| | | {
|
| | | AddOneBossRebornNotify(bossId);
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | refreshTime = DateTime.Now + new TimeSpan(_bossInfo.RefreshSecond * TimeSpan.TicksPerSecond);
|
| | | refreshTime = TimeUtility.ServerNow + new TimeSpan(_bossInfo.RefreshSecond * TimeSpan.TicksPerSecond);
|
| | | }
|
| | |
|
| | | public bool IsBossAlive()
|