Assassin_CompoundPosion
This commit is contained in:
37
Assets/Mods/Basic/Cards/Scripts/Assassin/CompoundPoison.cs
Normal file
37
Assets/Mods/Basic/Cards/Scripts/Assassin/CompoundPoison.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSFramework.General;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class CompoundPoison : CardLogicBase
|
||||
{
|
||||
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
|
||||
{
|
||||
CreateCharacterBuff<Weak>(GetAttribute("BuffStack_Weak")).Apply(target, user, this);
|
||||
}),
|
||||
|
||||
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
|
||||
{
|
||||
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);
|
||||
})
|
||||
);
|
||||
return mainGroup;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc6bf37eca5a709478bfa807d4739cea
|
||||
Reference in New Issue
Block a user