Esempio n. 1
0
    /// <summary>
    /// 进攻或防守完的效果
    /// </summary>
    /// <param name="triggerTime"></param>
    public void AfterFightCardEffect(BattleCardTriggerTime triggerTime)
    {
        if (BattleCard == null || BattleCard.triggerTime != triggerTime)
        {
            return;
        }

        BattleCard.CardFunc(this);
        BattleCard = null;
    }
Esempio n. 2
0
    /// <summary>
    /// 摇骰子根据卡牌获得的额外收益
    /// </summary>
    /// <param name="triggerTime"></param>
    /// <returns></returns>
    public int GetExtraIncreaseByCard(BattleCardTriggerTime triggerTime)
    {
        if (BattleCard == null || BattleCard.triggerTime != triggerTime)
        {
            return(0);
        }
        int result = BattleCard.CardFunc(this);

        BattleCard = null;
        return(result);
    }