Compare commits
3 Commits
fcae1ee1b5
...
076f430721
Author | SHA1 | Date |
---|---|---|
![]() |
076f430721 | |
![]() |
2a617f76c6 | |
![]() |
74744b3938 |
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue