You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Guard : Skill
{
protected override void Revise()
{
skillName = "严阵以待";
description = "恢复自己以及一格以内队友的韧性,并且提高防御力\n特殊效果“不屈”"
+ ":受到攻击时,恢复自身韧性值并削减对方韧性值";
}
Buff tough = new Tough();
protected override bool ApplyRequestion()
{
if(alliesInRange != null && self.GetCurrentMovement() >= movementCost
&& self.GetCurrentMana() >= manaCost)
return true;
return false;
}
public override void ApplySkill()
{
foreach(var ally in alliesInRange)
{
ally.ChangePoise(10);
ally.buffManager.AddBuff(new DefenceBuff(2,0.2f));
}
}
public override void ApplySkillState()
{
self.buffManager.AddSpecial(tough);
}
public override void RemoveSkillState()
{
self.buffManager.RemoveSpecial(tough);
}
}