|
|
|
@@ -341,7 +341,7 @@ namespace Gaming |
|
|
|
|| character.PlayerState == PlayerStateType.UsingSkill |
|
|
|
|| character.PlayerState == PlayerStateType.LockingTheDoor || character.PlayerState == PlayerStateType.OpeningTheDoor |
|
|
|
|| character.PlayerState == PlayerStateType.ClimbingThroughWindows) |
|
|
|
&& gameMap.CanSee(player, character)) |
|
|
|
&& XY.DistanceFloor3(character.Position, player.Position) <= player.ViewRange / 3) |
|
|
|
{ |
|
|
|
if (CharacterManager.BeStunned(character, GameData.timeOfGhostStunnedWhenPunish + GameData.factorOfTimeStunnedWhenPunish * (player.MaxHp - player.HP)) > 0) |
|
|
|
player.AddScore(GameData.StudentScoreTrickerBeStunned(GameData.timeOfGhostStunnedWhenPunish + GameData.factorOfTimeStunnedWhenPunish * (player.MaxHp - player.HP))); |
|
|
|
|