private void UseSpellButton_Click(object sender, RoutedEventArgs e) { if (game.SetPossibleSpellTargets()) { Cursor = CardAttackCursors.GetCursor(CardAttackCursorTypes.Staff); } }
private void BasicAttackButton_Click(object sender, RoutedEventArgs e) { var activeCard = game.Player.ActiveCard; var opponent = game.Opponent; Cursor = CardAttackCursors.GetCursor(activeCard.Type == CreatureTypes.Melee ? CardAttackCursorTypes.Sword : CardAttackCursorTypes.Arrow); opponent.RemoveSelectionFromCards(); opponent.SetPossibleTargets(activeCard.GetPossibleTargets(opponent.CardDeck, game.Player.ActiveCardPosition)); game.Player.DeselectSpellFriendlyTargets(); }