Skip to content

Commit 6758da2

Browse files
authored
Merge branch 'eesast:dev' into dev
2 parents eab2fd7 + a164818 commit 6758da2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

logic/GameClass/GameObj/Character.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ public long SetCharacterState(CharacterState value1 = CharacterState.NULL_CHARAC
180180
if (nowState1 == value1 && nowState2 == value2) return -1;
181181
if (value2 == CharacterState.NULL_CHARACTER_STATE)
182182
value2 = nowState2;
183+
if (value2 == CharacterState.DECEASED)
184+
return ChangeCharacterState(CharacterState.NULL_CHARACTER_STATE, value2, gameobj);
183185
if (nowState2 == CharacterState.KNOCKED_BACK)
184186
return -1;
185187
switch (value1)

logic/Gaming/ActionManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public bool SetTrap(Character character, TrapType traptype)
230230
new FrameRateTaskExecutor<int>
231231
(
232232
loopCondition: () =>
233-
gameMap.Timer.IsGaming && cage != null,
233+
gameMap.Timer.IsGaming && cage != null && cage.IsActivated,
234234
loopToDo: () =>
235235
{
236236
var characters = gameMap.CharacterInTheRangeNotTeamID(
@@ -280,7 +280,7 @@ public bool SetTrap(Character character, TrapType traptype)
280280
new FrameRateTaskExecutor<int>
281281
(
282282
loopCondition: () =>
283-
gameMap.Timer.IsGaming && hole != null,
283+
gameMap.Timer.IsGaming && hole != null && hole.IsActivated,
284284
loopToDo: () =>
285285
{
286286
var characters = gameMap.CharacterInTheRangeNotTeamID(

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)