Compare commits

...

3 Commits

Author SHA1 Message Date
Hang-THU 076f430721
Merge pull request #160 from Xyberoid/dev
fix: Chraracter补充InvisibleTime
2025-04-06 19:49:29 +08:00
Xyberoid 2a617f76c6 fix: fix 2025-04-05 21:52:29 +08:00
Xyberoid 74744b3938 fix: Chraracter补充InvisibleTime 2025-04-05 21:39:54 +08:00
2 changed files with 9 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public class Character : Movable, ICharacter
public bool IsShoes = false;
public long BerserkTime = long.MaxValue;//狂暴buff计时器
public bool IsBerserk = false;
public long InvisibleTime = long.MaxValue;//隐身药水计时器
public void StartSkillCD()
{
skillCD = Environment.TickCount64;

View File

@ -319,6 +319,14 @@ namespace Gaming
public void CheckInvisibility(Character character)
{
int nowtime = gameMap.Timer.NowTime();
if (!character.visible)
{
if (nowtime - character.InvisibleTime >= GameData.InvisibleTime)
{
character.visible = true;
character.InvisibleTime = long.MaxValue;
}
}
if (nowtime >= GameData.SevenMinutes
)
{