更新
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
/// <summary>
|
||||
/// 挑衅逻辑组件:在挑衅者身上添加 Provoking Buff(Taunt 状态),
|
||||
/// 在目标身上添加 Provoked Buff。
|
||||
/// </summary>
|
||||
public class CardLogicComponent_Provoke : CardLogicComponentBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 生成挑衅关系。
|
||||
/// </summary>
|
||||
/// <param name="provoker">挑衅者(骑士)</param>
|
||||
/// <param name="target">被挑衅的敌方</param>
|
||||
/// <param name="actionCount">挑衅持续行动次数</param>
|
||||
public void GenerateProvocation(CharacterBase provoker, CharacterBase target, int actionCount)
|
||||
{
|
||||
Provoked provokedBuff = mainLogic.CreateCharacterBuff<Provoked>();
|
||||
provokedBuff.Apply(target, user, mainLogic);
|
||||
|
||||
Provoking provokingBuff = mainLogic.CreateCharacterBuff<Provoking>(target, actionCount, provokedBuff);
|
||||
provokingBuff.Apply(provoker, user, mainLogic);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ecb637f7a58529945982218b7bc0a1e3
|
||||
Reference in New Issue
Block a user