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.

31 lines
890 B

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 Stab : Skill
{
protected override void Revise()
{
skillName = "螺旋突刺";
description = "旋转长枪向前突刺,具有相当的穿透性,甚至能够使敌人暂时混乱,受到更多伤害\n特殊效果“贯穿”"
+ ":攻击敌人时附带一定真实伤害";
}
Buff penetration = new Penetration();
public override void ApplySkill()
{
foreach(var enemy in enemiesInRange)
{
enemy.ChangeHealth(-12);
enemy.buffManager.AddBuff(new AttackBuff(2, -0.3f));
}
}
public override void ApplySkillState()
{
self.buffManager.AddSpecial(penetration);
}
public override void RemoveSkillState()
{
self.buffManager.RemoveSpecial(penetration);
}
}