Пример #1
0
 public void IncreasePowerByBattle(Card card, int power)
 {
     card.IncreasePower(power);
     Game.SendPacket(GameAction.POWER_INCREASE, card.pos, power);
 }
Пример #2
0
    void BoostUnit(Card c)
    {
        //C: Attacer
        //B: Booster

        Card b = field.GetCardAt(BackRow(c.pos));
        c.IncreasePower(b.GetPower());
        SendPacket(GameAction.POWER_INCREASE, c.pos, b.GetPower());
        b.boostedUnit = c;
        b.Rest();
        SendPacket(GameAction.REST_UNIT, b.pos);
        b.CheckAbilities(CardState.Boost);
        c.IsBoostedBy = b;

        SendPacket (GameAction.BOOST, c.pos);
        c.CheckAbilities(CardState.IsBoosted);

        //bEffectOnGoing = false;
        //bConfirmBoost = true;
        BoostUnit();
    }