Update
This commit is contained in:
@@ -12,17 +12,14 @@ namespace Continentis.Mods.Basic.Buffs
|
||||
public AmbushStance(int stack)
|
||||
{
|
||||
Initialize(BuffType.Positive, BuffDispelLevel.Strong);
|
||||
this.contentSubmodule = new ContentSubmodule(this, false)
|
||||
this.contentSubmodule = new ContentSubmodule(this)
|
||||
.AddParameterGetter("Stack", () => unitedStackSubmodule.stackAmount.ToString());
|
||||
this.iconSubmodule = new IconSubmodule(this);
|
||||
this.unitedStackSubmodule = new UnitedStackSubmodule(this, stack);
|
||||
this.eventSubmodule = new EventSubmodule(this);
|
||||
this.eventSubmodule.onBeforePlayCard.Add("AmbushStance", new PrioritizedAction<CardInstance, List<CharacterBase>>(((card, targets) =>
|
||||
{
|
||||
if (this.attachedCharacter is PlayerHero player)
|
||||
{
|
||||
CreateCharacterBuff<Buffs.Sharpness>(this.unitedStackSubmodule.stackAmount).Apply(attachedCharacter, attachedCharacter);
|
||||
}
|
||||
CreateCharacterBuff<Sharpness>(this.unitedStackSubmodule.stackAmount).Apply(attachedCharacter, attachedCharacter);
|
||||
})));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user