Skip to content
Open
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
3 changes: 2 additions & 1 deletion Graveyard/DeathrattleView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public static bool isValid()
card.Id == HearthDb.CardIds.Collectible.Neutral.Vectus ||
card.Id == HearthDb.CardIds.Collectible.Hunter.NineLives ||
card.Id == HearthDb.CardIds.Collectible.Neutral.DaUndatakah ||
card.Id == HearthDb.CardIds.Collectible.Priest.TwilightsCall
card.Id == HearthDb.CardIds.Collectible.Priest.TwilightsCall ||
card.Id == HearthDb.CardIds.Collectible.Priest.XyrellaTheDevout
) > -1;
}

Expand Down
11 changes: 11 additions & 0 deletions Graveyard/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Graveyard/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,8 @@
<Setting Name="SaurfangEnabled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="ShirvallahEnabled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>
4 changes: 4 additions & 0 deletions Graveyard/SettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@
Content="{lex:Loc Saurfang}"
ToolTip="{lex:Loc SaurfangDescription}"
Style="{StaticResource ToggleStyle}" />
<mah:ToggleSwitch IsChecked="{Binding ShirvallahEnabled, Source={x:Static local:Settings.Default}}"
Content="{lex:Loc Shirvallah}"
ToolTip="{lex:Loc ShirvallahDescription}"
Style="{StaticResource ToggleStyle}" />
<mah:ToggleSwitch IsChecked="{Binding RallyEnabled, Source={x:Static local:Settings.Default}}"
Content="{lex:Loc Rally}"
ToolTip="{lex:Loc RallyDescription}"
Expand Down
43 changes: 43 additions & 0 deletions Graveyard/ShirvallahView.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using Hearthstone_Deck_Tracker;
using Hearthstone_Deck_Tracker.Hearthstone;

namespace HDT.Plugins.Graveyard
{
public class ShirvallahView : NormalView
{
public static bool isValid()
{
return Core.Game.Player.PlayerCardList.FindIndex(card => card.Id == HearthDb.CardIds.Collectible.Paladin.ShirvallahTheTiger) > -1;
}

public ShirvallahView()
{
Label.Text = Strings.GetLocalized("Shirvallah");
int mana = 25;
}

public bool Update(Card card)
{
if (card.Type == "Spell" && card.Cost > 0 )
{
mana =- card.Cost;
ShirvallahTheTiger = Database.GetCardFromId("TRL_300");
Card ShirvallahTheTiger { get; };

var match = Cards.FirstOrDefault(c => c.Name == "Shirvallah, the Tiger");
if (match != null)
{
match.Count = mana;
}
else
{
Cards.Add(ShirvallahTheTiger as Card);
}
View.Update(Cards, false);

Label.Visibility = Visibility.Visible;

return true;
}
}
}
2 changes: 2 additions & 0 deletions Graveyard/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
</setting>
<setting name="SaurfangEnabled" serializeAs="String">
<value>True</value>
<setting name="ShirvallahEnabled" serializeAs="String">
<value>True</value>
</setting>
</HDT.Plugins.Graveyard.Settings>
</userSettings>
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ Displays spells that have been cast.
* **Hoard Pillager** and **Rummaging Kobold**
Displays equip/return chance of weapons used this game.

* **Shirvallah, the Tiger**
Displays mana expenditure on spells that have been cast.

## Installing
1. Download *Graveyard.zip* from [here](https://github.com/RedHatter/Graveyard/releases).
2. If needed, unblock the zip file before unzipping, by [right-clicking it and choosing properties](http://blogs.msdn.com/b/delay/p/unblockingdownloadedfile.aspx):
Expand Down