Skip to content

Commit a164818

Browse files
Merge pull request #435 from Hang-THU/dev
fix bug
2 parents ae59719 + 2cf3de3 commit a164818

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

logic/Gaming/ActionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public bool SetTrap(Character character, TrapType traptype)
287287
hole.Position, GameData.TrapRange, hole.TeamID);
288288
if (characters == null || characters.Count == 0)
289289
{
290-
return true;
290+
return true;
291291
}
292292
foreach (var character in characters)
293293
{

logic/Gaming/CharacterManager.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,15 @@ public void CheckQuickStepTime(Character character)
382382
public void CheckWideViewTime(Character character)
383383
{
384384
long nowtime = Environment.TickCount64;
385-
if (nowtime - character.WideViewTime >= 60000 && character.CanSeeAll)
385+
if (nowtime - character.WideViewTime >= 60000 && character.CanSeeAll && gameMap.Timer.NowTime() <= GameData.SevenMinutes)
386386
{
387387
character.CanSeeAll = false;
388388
character.WideViewTime = 0;
389389
}
390+
else if (gameMap.Timer.NowTime() > GameData.SevenMinutes)
391+
{
392+
character.CanSeeAll = true;
393+
}
390394
}
391395
public void CheckPurified(Character character)
392396
{

0 commit comments

Comments
 (0)