fix: trigger Kasen beast guide berserk on recall
This commit is contained in:
parent
83d7fea4d5
commit
70ca177d20
@ -689,6 +689,12 @@ namespace Logic.Skill
|
||||
actor.AddActionPoint(ActionPointType.Move);
|
||||
if (ownerLevel >= 2)
|
||||
Main.UnitLogic.RecoverHealth_Legacy(map, actor, actor, KasenBeastGuideRecallHeal);
|
||||
if (ownerLevel >= 3)
|
||||
{
|
||||
actor.AddSkill_Legacy(SkillType.KasenBeastGuideBerserkBuff, map, false, 0, false, -1, false,
|
||||
SpecialAddSkillType.Force, guideSkill.KasenOriginId);
|
||||
PlaySkillIcon(map, actor, SkillType.KasenBeastGuideBerserkBuff);
|
||||
}
|
||||
actor.Renderer(map)?.InstantUpdateUnit(false);
|
||||
return true;
|
||||
}
|
||||
@ -821,10 +827,6 @@ namespace Logic.Skill
|
||||
if (!around.RealUnit(map, out var unit)) continue;
|
||||
if (!IsFriendlyToKasenGuide(map, unit, guideSkill)) continue;
|
||||
Main.UnitLogic.RecoverHealth_Legacy(map, null, unit, KasenBeastGuideTurnHeal);
|
||||
if (ownerLevel < 3) continue;
|
||||
unit.AddSkill_Legacy(SkillType.KasenBeastGuideBerserkBuff, map, false, 0, false, -1, false,
|
||||
SpecialAddSkillType.Force, guideSkill.KasenOriginId);
|
||||
PlaySkillIcon(map, unit, SkillType.KasenBeastGuideBerserkBuff);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2816,6 +2818,12 @@ namespace Logic.Skill
|
||||
{
|
||||
return SkillType.KasenBeastGuideBerserkBuff;
|
||||
}
|
||||
|
||||
public override void OnTurnEnd(IdentifierBase self, MapData mapData)
|
||||
{
|
||||
if (self is UnitData unit)
|
||||
unit.RemoveSkill(SkillType.KasenBeastGuideBerserkBuff, mapData);
|
||||
}
|
||||
}
|
||||
|
||||
public partial class KasenPermanentBerserkSkill : SkillBase
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user