Browse Source

fix: 🐛 fix the bug of Inspire

tags/v0.1.0
shangfengh 2 years ago
parent
commit
68832de4bd
4 changed files with 22 additions and 2 deletions
  1. +3
    -1
      docs/版本更新说明.md
  2. +13
    -0
      logic/GameClass/GameObj/Character/Character.BuffManager.cs
  3. +5
    -0
      logic/GameClass/GameObj/Character/Character.cs
  4. +1
    -1
      logic/Gaming/SkillManager/SkillManager.ActiveSkill.cs

+ 3
- 1
docs/版本更新说明.md View File

@@ -40,4 +40,6 @@

# 最新更新
- feat:TechOtaku可用
- feat:Klee、Idol已调整
- feat:Klee、Idol已调整
- fix:修复了InSpire会给Tricker加速的问题
- fix:修复了开锁门的bug

+ 13
- 0
logic/GameClass/GameObj/Character/Character.BuffManager.cs View File

@@ -197,6 +197,19 @@ namespace GameClass.GameObj
return false;
}

public bool TryDeleteInvisible()
{
if (HasInvisible)
{
lock (buffListLock[(int)BuffType.Invisible])
{
buffList[(int)BuffType.Invisible].RemoveFirst();
}
return true;
}
return false;
}

public void AddClairaudience(int shieldTime) => AddBuff(new BuffValue(), shieldTime, BuffType.Clairaudience, () =>
{ });
public bool HasClairaudience


+ 5
- 0
logic/GameClass/GameObj/Character/Character.cs View File

@@ -823,6 +823,11 @@ namespace GameClass.GameObj
return buffManager.TryUseSpear();
}

public bool TryDeleteInvisible()
{
return buffManager.TryDeleteInvisible();
}

public bool TryUseShield()
{
if (buffManager.TryUseShield())


+ 1
- 1
logic/Gaming/SkillManager/SkillManager.ActiveSkill.cs View File

@@ -428,7 +428,7 @@ namespace Gaming
{
foreach (Character character in gameMap.GameObjDict[GameObjType.Character])
{
if (gameMap.CanSee(player, character))
if (gameMap.CanSee(player, character) && !character.IsGhost())
{
player.AddScore(GameData.ScoreInspire);
character.AddMoveSpeed(GameData.timeOfAddingSpeedWhenInspire, GameData.addedTimeOfSpeedWhenInspire);


Loading…
Cancel
Save