卡牌费用计算问题
卡牌费用计算
卡牌费用计算问题通常写在CardDB.cs中calculateManaCost方法以及getManaCost方法中
深渊魔物
case CardDB.cardName.thingfrombelow: if (p.playactions.Count > 0) { foreach (Action a in p.playactions) { if (a.actionType == actionEnum.playcard) { switch (a.card.card.name) { case cardName.tuskarrtotemic: retval -= p.ownBrannBronzebeard + 1; break; case cardName.splittingaxe://分裂战斧 int ownTotemsCount = 0; foreach (Minion m in p.ownMinions) { if ((TAG_RACE)m.handcard.card.race == TAG_RACE.TOTEM) ownTotemsCount++; } retval -= ownTotemsCount; break; default: if ((TAG_RACE)a.card.card.race == TAG_RACE.TOTEM) retval--; break; } } else if (a.actionType == actionEnum.useHeroPower) { switch (a.card.card.name) { case cardName.totemiccall: retval--; break; case cardName.totemicslam: retval--; break; } } } } break;