Update
This commit is contained in:
@@ -21,7 +21,6 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
mainGroup.AddCommand(new Cmd_Function(() =>
|
||||
{
|
||||
CardData cardData = GetDerivativeCardData(0);
|
||||
Debug.LogError(cardData.displayName);
|
||||
CardInstance.GenerateCardInstance(cardData, user.team, "Hand");
|
||||
}));
|
||||
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
{
|
||||
private int _sharpnessCount = 0;
|
||||
|
||||
public override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Attack>();
|
||||
}
|
||||
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup( targetList,
|
||||
@@ -32,5 +37,10 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Default();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Arcane();
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Default();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,11 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
{
|
||||
public class ExtremePain : CardLogicBase
|
||||
{
|
||||
public override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Attack>();
|
||||
}
|
||||
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
@@ -32,5 +37,10 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
}
|
||||
return baseDamage + extraDamage;
|
||||
}
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Default();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,10 +15,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.01f, target =>
|
||||
{
|
||||
if (target != user)
|
||||
{
|
||||
CreateCharacterBuff<Corrosion>(GetAttribute("BuffStack")).Apply(target, user, this);
|
||||
}
|
||||
CreateCharacterBuff<Corrosion>(GetAttribute("BuffStack")).Apply(target, user, this);
|
||||
}));
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
base.Initialize(card);
|
||||
this.card.eventSubmodule.onInitiativeDiscard.Add("FirmBelief_PlayWhenDiscard",
|
||||
new PrioritizedCheckAndEffect(() => true, () => card.Play(new List<CharacterBase>(), user)));
|
||||
new PrioritizedCheckAndEffect(() => true, () => card.Play(new List<CharacterBase>(), user, false, true)));
|
||||
}
|
||||
|
||||
public override void SetUpLogicComponents()
|
||||
@@ -26,7 +26,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
CommandGroup mainGroup = SingleCommandGroup(
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
new Cmd_Function(() => user.AddBlock(GetAttribute("Block"))),
|
||||
new Cmd_Function(() => user.deckSubmodule.DrawCards(GetAttribute("DrawCardAmount"))));
|
||||
user.deckSubmodule.DrawCards(GetAttribute("DrawCardAmount")));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
|
||||
private void SelectEffect(CardInstance card)
|
||||
{
|
||||
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DiscardCard(card, true), new CommandContext());
|
||||
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DiscardCard(card, true, 0f), new CommandContext());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
new Cmd_PlayAnimation(user.characterView, "Action"),
|
||||
new Cmd_ParamFunction<CharacterBase>(0.1f, target =>
|
||||
{
|
||||
CreateCharacterBuff<Vulnerable>(GetAttribute("BuffCount_Vulnerable")).Apply(target, user, this);
|
||||
|
||||
Reference in New Issue
Block a user