Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion SabberStoneCore/resources/Data/CardDefs-36393.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155094,6 +155094,35 @@ o bien &lt;b&gt;Silencia&lt;/b&gt; a un esbirro.</esES>
<PlayRequirement param="" reqID="22"/>
</Power>
</Entity>
<Entity CardID="FB_Champs_EX1_166a" ID="949276" version="2">
<Tag enumID="185" name="CARDNAME" type="LocString">
<enUS>Moonfire</enUS>
</Tag>
<Tag enumID="184" name="CARDTEXT" type="LocString">
<enUS>Deal 2 damage.</enUS>
</Tag>
<Tag enumID="48" name="COST" type="Int" value="4"/>
<Tag enumID="183" name="CARD_SET" type="Int" value="18"/>
<Tag enumID="199" name="CLASS" type="Int" value="2"/>
<Tag enumID="201" name="FACTION" type="Int" value="3"/>
<Tag enumID="202" name="CARDTYPE" type="Int" value="5"/>
<Tag enumID="251" name="AttackVisualType" type="Int" value="1"/>
</Entity>
<Entity CardID="FB_Champs_EX1_166b" ID="949277" version="2">
<Tag enumID="185" name="CARDNAME" type="LocString">
<enUS>Dispel</enUS>
</Tag>
<Tag enumID="184" name="CARDTEXT" type="LocString">
<enUS>&lt;b&gt;Silence&lt;/b&gt; a minion.</enUS>
</Tag>
<Tag enumID="48" name="COST" type="Int" value="4"/>
<Tag enumID="183" name="CARD_SET" type="Int" value="18"/>
<Tag enumID="199" name="CLASS" type="Int" value="2"/>
<Tag enumID="201" name="FACTION" type="Int" value="3"/>
<Tag enumID="202" name="CARDTYPE" type="Int" value="5"/>
<Tag enumID="251" name="AttackVisualType" type="Int" value="1"/>
<Tag enumID="339" name="SILENCE" type="Int" value="1"/>
</Entity>
<Entity CardID="FB_Champs_EX1_169" ID="48862" version="2">
<MasterPower>092a72e8-95cb-4208-8406-fa16c1866c2a</MasterPower>
<Tag enumID="185" name="CARDNAME" type="LocString">
Expand Down Expand Up @@ -434738,4 +434767,4 @@ de tu mazo.</esES>
<Power definition="5d9e9b5a-6e03-4896-a7fb-c6e49f2462b4"/>
<TriggeredPowerHistoryInfo effectIndex="0" showInHistory="False"/>
</Entity>
</CardDefs>
</CardDefs>
31 changes: 30 additions & 1 deletion SabberStoneCore/resources/Data/CardDefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161099,6 +161099,35 @@ o bien &lt;b&gt;Silencia&lt;/b&gt; a un esbirro.</esES>
<Tag enumID="443" name="CHOOSE_ONE" type="Int" value="1"/>
<ReferencedTag enumID="339" name="SILENCE" type="Int" value="1"/>
</Entity>
<Entity CardID="FB_Champs_EX1_166a" ID="949276" version="2">
<Tag enumID="185" name="CARDNAME" type="LocString">
<enUS>Moonfire</enUS>
</Tag>
<Tag enumID="184" name="CARDTEXT" type="LocString">
<enUS>Deal 2 damage.</enUS>
</Tag>
<Tag enumID="48" name="COST" type="Int" value="4"/>
<Tag enumID="183" name="CARD_SET" type="Int" value="18"/>
<Tag enumID="199" name="CLASS" type="Int" value="2"/>
<Tag enumID="201" name="FACTION" type="Int" value="3"/>
<Tag enumID="202" name="CARDTYPE" type="Int" value="5"/>
<Tag enumID="251" name="AttackVisualType" type="Int" value="1"/>
</Entity>
<Entity CardID="FB_Champs_EX1_166b" ID="949277" version="2">
<Tag enumID="185" name="CARDNAME" type="LocString">
<enUS>Dispel</enUS>
</Tag>
<Tag enumID="184" name="CARDTEXT" type="LocString">
<enUS>&lt;b&gt;Silence&lt;/b&gt; a minion.</enUS>
</Tag>
<Tag enumID="48" name="COST" type="Int" value="4"/>
<Tag enumID="183" name="CARD_SET" type="Int" value="18"/>
<Tag enumID="199" name="CLASS" type="Int" value="2"/>
<Tag enumID="201" name="FACTION" type="Int" value="3"/>
<Tag enumID="202" name="CARDTYPE" type="Int" value="5"/>
<Tag enumID="251" name="AttackVisualType" type="Int" value="1"/>
<Tag enumID="339" name="SILENCE" type="Int" value="1"/>
</Entity>
<Entity CardID="FB_Champs_EX1_169" ID="48862" version="2">
<Tag enumID="185" name="CARDNAME" type="LocString">
<deDE>Anregen</deDE>
Expand Down Expand Up @@ -423428,4 +423457,4 @@ de tu mazo.</esES>
<Tag enumID="858" name="2262" type="Int" value="2262"/>
<Tag enumID="1413" name="DECK_RULE_COUNT_AS_COPY_OF_CARD_ID" type="Int" value="2262"/>
</Entity>
</CardDefs>
</CardDefs>
122 changes: 122 additions & 0 deletions SabberStoneCore/src/CardSets/FirebatNaxxCardsGen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
#region copyright
// SabberStone, Hearthstone Simulator in C# .NET Core
// Copyright (C) 2017-2019 SabberStone Team, darkfriend77 & rnilva
//
// SabberStone is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License.
// SabberStone is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
#endregion
using System.Collections.Generic;
using SabberStoneCore.Auras;
using SabberStoneCore.Conditions;
using SabberStoneCore.Enchants;
using SabberStoneCore.Enums;
using SabberStoneCore.Tasks;
using SabberStoneCore.Tasks.SimpleTasks;
using SabberStoneCore.Triggers;
using SabberStoneCore.src.Loader;

namespace SabberStoneCore.CardSets
{
/// <summary>
/// Minimal historical powers for the Firebat 2014 championship card ids used by the BasicAI matchup.
/// Tavern Brawl card definitions are intentionally not loaded globally in SabberStone.
/// </summary>
public static class FirebatNaxxCardsGen
{
public static void AddAll(IDictionary<string, CardDef> cards)
{
cards.Add("FB_Champs_EX1_165", new CardDef(new Power
{
PowerTask = new TransformTask("FB_Champs_OG_044a", EntityType.SOURCE)
}));
cards.Add("FB_Champs_EX1_165a", new CardDef(new Power
{
PowerTask = new TransformTask("FB_Champs_EX1_165t1", EntityType.SOURCE)
}));
cards.Add("FB_Champs_EX1_165b", new CardDef(new Power
{
PowerTask = new TransformTask("FB_Champs_EX1_165t2", EntityType.SOURCE)
}));
cards.Add("FB_Champs_EX1_166", new CardDef(new Dictionary<PlayReq, int> { { PlayReq.REQ_TARGET_IF_AVAILABLE, 0 } }, new Power
{
}));
cards.Add("FB_Champs_EX1_166a", new CardDef(new Dictionary<PlayReq, int> { { PlayReq.REQ_TARGET_TO_PLAY, 0 } }, new Power
{
PowerTask = new DamageTask(2, EntityType.TARGET)
}));
cards.Add("FB_Champs_EX1_166b", new CardDef(new Dictionary<PlayReq, int> { { PlayReq.REQ_TARGET_TO_PLAY, 0 }, { PlayReq.REQ_MINION_TARGET, 0 } }, new Power
{
PowerTask = new SilenceTask(EntityType.TARGET)
}));
cards.Add("FB_Champs_EX1_tk9", new CardDef(new Power
{
Trigger = new Trigger(TriggerType.TURN_END)
{
EitherTurn = true,
SingleTask = new DestroyTask(EntityType.SOURCE)
}
}));
cards.Add("FB_Champs_EX1_169", new CardDef(new Power
{
PowerTask = new TempManaTask(2)
}));
cards.Add("FB_Champs_EX1_571", new CardDef(new Dictionary<PlayReq, int> { { PlayReq.REQ_NUM_MINION_SLOTS, 1 } }, new Power
{
PowerTask = new SummonTask("FB_Champs_EX1_tk9", 3)
}));
cards.Add("FB_Champs_NEW1_008a", new CardDef(new Power
{
PowerTask = new DrawTask(2)
}));
cards.Add("FB_Champs_NEW1_008b", new CardDef(new Dictionary<PlayReq, int> { { PlayReq.REQ_TARGET_TO_PLAY, 0 } }, new Power
{
PowerTask = new HealTask(5, EntityType.TARGET)
}));

cards.Add("FB_Champs_CS2_188", new CardDef(new Dictionary<PlayReq, int> { { PlayReq.REQ_TARGET_IF_AVAILABLE, 0 }, { PlayReq.REQ_MINION_TARGET, 0 } }, new Power
{
PowerTask = new AddEnchantmentTask("CS2_188o", EntityType.TARGET)
}));
cards.Add("FB_Champs_EX1_005", new CardDef(new Dictionary<PlayReq, int> { { PlayReq.REQ_TARGET_IF_AVAILABLE, 0 }, { PlayReq.REQ_MINION_TARGET, 0 }, { PlayReq.REQ_TARGET_MIN_ATTACK, 7 } }, new Power
{
PowerTask = new DestroyTask(EntityType.TARGET)
}));
cards.Add("FB_Champs_EX1_029", new CardDef(new Power
{
DeathrattleTask = new DamageTask(2, EntityType.OP_HERO)
}));
cards.Add("FB_Champs_EX1_556", new CardDef(new Power
{
DeathrattleTask = new SummonTask("FB_Champs_skele21", SummonSide.DEATHRATTLE)
}));
cards.Add("FB_Champs_FP1_028e", new CardDef(new Power
{
Enchant = new OngoingEnchant(Effects.AttackHealth_N(1))
}));
cards.Add("FB_Champs_FP1_028", new CardDef(new Power
{
InfoCardId = "FB_Champs_FP1_028e",
Trigger = new Trigger(TriggerType.SUMMON)
{
TriggerSource = TriggerSource.FRIENDLY,
Condition = SelfCondition.IsDeathrattleMinion,
SingleTask = new AddEnchantmentTask("FB_Champs_FP1_028e", EntityType.SOURCE)
}
}));
cards.Add("FB_Champs_NEW1_019", new CardDef(new Power
{
Trigger = new Trigger(TriggerType.AFTER_SUMMON)
{
TriggerSource = TriggerSource.MINIONS_EXCEPT_SELF,
SingleTask = ComplexTask.DamageRandomTargets(1, EntityType.ENEMIES, 1)
}
}));
}
}
}
4 changes: 2 additions & 2 deletions SabberStoneCore/src/CardSets/NaxxCardsGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ private static void Neutral(IDictionary<string, CardDef> cards)
// [FP1_028] Undertaker - COST:1 [ATK:1/HP:2]
// - Set: naxx, Rarity: common
// --------------------------------------------------------
// Text: Whenever you summon a minion with <b>Deathrattle</b>, gain +1 Attack.
// Text: Whenever you summon a minion with <b>Deathrattle</b>, gain +1/+1.
// --------------------------------------------------------
// RefTag:
// - DEATHRATTLE = 1
Expand Down Expand Up @@ -650,7 +650,7 @@ private static void NeutralNonCollect(IDictionary<string, CardDef> cards)
// --------------------------------------------------------
cards.Add("FP1_028e", new CardDef(new Power
{
Enchant = new OngoingEnchant(Effects.Attack_N(1))
Enchant = new OngoingEnchant(Effects.AttackHealth_N(1))
}));

// ---------------------------------- ENCHANTMENT - NEUTRAL
Expand Down
5 changes: 3 additions & 2 deletions SabberStoneCore/src/CardSets/Standard/Expert1CardsGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,15 @@ private static void Druid(IDictionary<string, CardDef> cards)
// [EX1_571] Force of Nature - COST:5
// - Fac: neutral, Set: expert1, Rarity: epic
// --------------------------------------------------------
// Text: Summon three 2/2 Treants.
// Text: Summon three 2/2 Treants with
// <b>Charge</b> that die at the end of the turn.
// --------------------------------------------------------
// PlayReq:
// - REQ_NUM_MINION_SLOTS = 1
// --------------------------------------------------------
cards.Add("EX1_571", new CardDef(new Dictionary<PlayReq, int>() {{PlayReq.REQ_NUM_MINION_SLOTS,1}}, new Power
{
PowerTask = new SummonTask("EX1_158t", 3)
PowerTask = new SummonTask("FB_Champs_EX1_tk9", 3)
}));

// ------------------------------------------ SPELL - DRUID
Expand Down
Loading