修复额外生命值百分比错误减少的问题;修复持续性行动速度的特效没有正常消失的问题

This commit is contained in:
milimoe 2024-12-04 01:03:56 +08:00
parent 25242bd66d
commit a0728946f1
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
3 changed files with 13 additions and 3 deletions

View File

@ -22,7 +22,7 @@ namespace Oshima.FunGame.OshimaModules.Effects.OpenEffects
public override void OnEffectLost(Character character) public override void OnEffectLost(Character character)
{ {
character.ExHPPercentage -= ; character.ExHPPercentage -= ;
} }
public override void OnAttributeChanged(Character character) public override void OnAttributeChanged(Character character)

View File

@ -35,7 +35,12 @@ namespace Oshima.FunGame.OshimaModules.Effects.SkillEffects
ExSPD e = new(Skill, new Dictionary<string, object>() ExSPD e = new(Skill, new Dictionary<string, object>()
{ {
{ "exspd", SPD } { "exspd", SPD }
}, caster); }, caster)
{
Durative = _durative,
Duration = _duration,
DurationTurn = _durationTurn
};
target.Effects.Add(e); target.Effects.Add(e);
e.OnEffectGained(target); e.OnEffectGained(target);
GamingQueue?.LastRound.Effects.TryAdd(target, e.EffectType); GamingQueue?.LastRound.Effects.TryAdd(target, e.EffectType);

View File

@ -35,7 +35,12 @@ namespace Oshima.FunGame.OshimaModules.Effects.SkillEffects
ExSPD e = new(Skill, new Dictionary<string, object>() ExSPD e = new(Skill, new Dictionary<string, object>()
{ {
{ "exspd", SPD } { "exspd", SPD }
}, caster); }, caster)
{
Durative = _durative,
Duration = _duration,
DurationTurn = _durationTurn
};
target.Effects.Add(e); target.Effects.Add(e);
e.OnEffectGained(target); e.OnEffectGained(target);
GamingQueue?.LastRound.Effects.TryAdd(target, e.EffectType); GamingQueue?.LastRound.Effects.TryAdd(target, e.EffectType);