Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!
i need the UILogg-file, where the fight was logged (in your hearthbuddy log, at the start of the fight, there is this line written: "fight is logged in: xxxx"
CardDB.Card c = hc.card;
if (playedcards.Contains(c.name) || !hc.canplayCard(p)) continue; // dont play the same card in one loop
playedcards.Add(c.name);
int isChoice = (c.choice) ? 1 : 0;
for (int i = 0 + 1 * isChoice; i < 1 + 2 * isChoice; i++)
{
if (c.choice) c = PenalityManager.Instance.getChooseCard(hc.card, i); // do all choice
blubb
}
you cant do the if(c.choice) check! because c will be changed in first iteration, so the card will not be changed to the second choice-card.
but anyway its a nice way to simlify my code