卡牌更新
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
@@ -7,11 +8,14 @@ using SLSFramework.General;
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
/// <summary>
|
||||
/// 顺劈斩:对全体敌人造成物理斩击伤害,数值受到力量和敏捷增减影响。
|
||||
/// AOE范围由卡牌数据的目标配置决定,Logic层无需额外处理。
|
||||
/// 顺劈斩:对全体敌人造成物理伤害。
|
||||
/// AOE 范围由卡牌数据的目标配置决定(targetCount = -1)。
|
||||
/// </summary>
|
||||
public class Cleave : CardLogicBase
|
||||
{
|
||||
private AttackContext PhysicsCtx => AttackContext.Default(card)
|
||||
.WithDamageKeywords(CardKeywords.Physics);
|
||||
|
||||
public override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Attack>();
|
||||
@@ -21,13 +25,17 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
return Cmd.Sequential(
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
ForEachTarget(targetList, target => Cmd.Do(() => AttackTarget(target, GetTargetedFinalDamage(target))))
|
||||
ForEachTarget(targetList, target => Cmd.Do(() =>
|
||||
{
|
||||
AttackContext ctx = PhysicsCtx;
|
||||
AttackTarget(target, GetTargetedFinalDamage(target, ctx), ctx);
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Slash();
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Physics();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user