Card爆改!
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class BlessedHolyWater : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential);
|
||||
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));
|
||||
|
||||
@@ -11,12 +11,12 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class ChainBlessing : CardLogicBase
|
||||
{
|
||||
protected override void SetUpLogicComponents()
|
||||
public override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_GenerateCards>();
|
||||
}
|
||||
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential);
|
||||
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));
|
||||
@@ -26,7 +26,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
var powerCards = new List<CardInstance>();
|
||||
foreach (var card in user.deckSubmodule.HandPile)
|
||||
{
|
||||
if (card.cardLogic.contentSubmodule.cardType == MainGame.Card.CardType.Power)
|
||||
if (card.contentSubmodule.cardType == MainGame.Card.CardType.Power)
|
||||
{
|
||||
powerCards.Add(card);
|
||||
}
|
||||
@@ -37,7 +37,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
var copyCount = GetAttribute("CopyCount");
|
||||
for (int i = 0; i < copyCount; i++)
|
||||
{
|
||||
CardInstance newCard = CardInstance.GenerateCardInstance(randomPowerCard.cardLogic, user, "Hand");
|
||||
CardInstance newCard = CardInstance.GenerateCardInstance(randomPowerCard, user, "Hand");
|
||||
newCard.cardLogic.SetAttribute("StaminaCost", 0);
|
||||
newCard.GenerateHandCardView("Hand");
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Continentis.Mods.Basic
|
||||
{
|
||||
public class DivineProtection : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
@@ -26,8 +26,8 @@ namespace Continentis.Mods.Basic
|
||||
|
||||
mainGroup.AddCommand(new Cmd_Function(() =>
|
||||
{
|
||||
CreateCardBuff<Buffs.DivineProtection>(GetAttribute("BlockStack")).Apply(this, user, this);
|
||||
this.contentSubmodule.dirtyMark = true;
|
||||
CreateCardBuff<Buffs.DivineProtection>(GetAttribute("BlockStack")).Apply(card, user, this);
|
||||
card.contentSubmodule.dirtyMark = true;
|
||||
}));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Continentis.Mods.Basic
|
||||
{
|
||||
public class DivinePunishment : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
@@ -22,13 +22,13 @@ namespace Continentis.Mods.Basic
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
||||
{
|
||||
user.Attack(target, GetFinalDamage(target));
|
||||
user.Attack(target, GetTargetedFinalDamage(target));
|
||||
}));
|
||||
|
||||
mainGroup.AddCommand(new Cmd_Function(() =>
|
||||
{
|
||||
CreateCardBuff<Buffs.DivinePunishment>(GetAttribute("DamageStack")).Apply(this, user, this);
|
||||
this.contentSubmodule.dirtyMark = true;
|
||||
CreateCardBuff<Buffs.DivinePunishment>(GetAttribute("DamageStack")).Apply(card, user, this);
|
||||
card.contentSubmodule.dirtyMark = true;
|
||||
}));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class Faith : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = user.deckSubmodule.DrawCards(GetAttribute("DrawCount"));
|
||||
return new List<CommandBase> { mainGroup };
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class FreedomOfMovement : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.01f, target =>
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class LessRestoration : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class PrayerOfHealing : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class Sanctuary : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class ShieldOfDevotion : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.01f, target =>
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Continentis.Mods.Basic.Cards.Cleric
|
||||
{
|
||||
public class SpiritGuardian : CardLogicBase
|
||||
{
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.01f, target =>
|
||||
|
||||
Reference in New Issue
Block a user