32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using Continentis.MainGame.Card;
|
|
using Continentis.MainGame.Character;
|
|
using Continentis.MainGame.Commands;
|
|
using Continentis.Mods.Basic.Buffs;
|
|
using SLSFramework.General;
|
|
|
|
namespace Continentis.Mods.Basic.Cards.Assassin
|
|
{
|
|
public class CompoundPoison : CardLogicBase
|
|
{
|
|
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
|
|
{
|
|
return ForEachTarget(targetList, target => Cmd.Parallel(
|
|
Cmd.After(0.05f, () =>
|
|
CreateCharacterBuff<Weak>(GetAttribute("BuffStack_Weak")).Apply(target, user, this)
|
|
),
|
|
Cmd.After(0.05f, () =>
|
|
{
|
|
var debuffCount = 0;
|
|
foreach (var buff in target.combatBuffSubmodule.buffList)
|
|
{
|
|
if (buff.buffType == MainGame.BuffType.Negative)
|
|
debuffCount++;
|
|
}
|
|
CreateCharacterBuff<Corrosion>(GetAttribute("BuffStack_Corrosion") * debuffCount).Apply(target, user, this);
|
|
})
|
|
));
|
|
}
|
|
}
|
|
}
|