Esempio n. 1
0
    int SpellOnHexValue(SpellCard sCard, Hex hex)
    {
        if(hex.Unit != null) {
            MockUnit mo = new MockUnit(hex.Unit);
            int originValue = mo.Value(CalculateHexValue);

            int newValue = sCard.MockOnPlay(mo, CalculateHexValue);
            if(mo.Team == player.Team) {
                return ((originValue - newValue) * -1);
            } else {
                return ((originValue - newValue));
            }
        }
        return -1;
    }