Beispiel #1
0
    //Levin Sword [ACT] [FLIP 1] Until the end of the turn, this unit loses -10 attack and acquires <Tome> affinity and range 1-2.
    //This is the method that gets called once the bond flip is finished.
    private void ActivateLevinSword()
    {
        //removes the callback
        Owner.FinishBondFlipEvent.RemoveListener(ActivateLevinSword);

        //updates the game log
        CardReader.instance.UpdateGameLog(Owner.playerName + " activates Ogma's Levin Sword skill! " +
                                          "Ogma gains <Tome> affinity, 1-2 range, and -10 attack.");

        //reduces attack by 10, adds the affinity and Range bonus, and displays effect in the skill tracker.
        attackModifier  -= 10;
        levinSwordActive = true;
        AddToSkillChangeTracker("Ogma's Levin Sword providing -10 attack, <Tome> affinity, and 1-2 range.");

        //set up the cancel for this skill at the end of the turn and if the card is removed from the field.
        Owner.endTurnEvent.AddListener(CancelLevinSword);
        RemoveFromFieldEvent.AddListener(CancelLevinSword);
    }
Beispiel #2
0
    //Excalibur [ACT] [ONCE PER TURN] [FLIP 1] Until the end of the turn, this unit acquires "Anti-Fliers".
    //(Anti-Fliers [ALWAYS] If this unit is attacking a <Flier>, this unit gains +30 attack.)
    private void Excalibur()
    {
        //removes the callback
        Owner.FinishBondFlipEvent.RemoveListener(Excalibur);

        //Adds the Anti-Fliers skill effect to this unit's attacks.
        DeclareAttackEvent.AddListener(AbilitySupport.AntiFliers);

        //display the boost
        CardReader.instance.UpdateGameLog(Owner.playerName + " activates Merric's Excalibur skill! " +
                                          "Merric: Wind Mage possesses the Anti-Flier's skill until the end of the turn.");

        AddToSkillChangeTracker("Excalibur active; Merric possesses the Anti-Fliers skill.");

        //Sets a callback to remove the effect of Excalibur at the end of the turn or if this card is removed from the field.
        Owner.endTurnEvent.AddListener(CancelExcalibur);
        RemoveFromFieldEvent.AddListener(CancelExcalibur);
    }
Beispiel #3
0
    //Killing Edge [ACT] [FLIP 3] Until the end of the turn, this card's attacks cannot be evaded.
    //This is the method that gets called once the bond flip is finished.
    private void ActivateKillingEdge()
    {
        //removes the callback
        Owner.FinishBondFlipEvent.RemoveListener(ActivateKillingEdge);

        //updates the game log
        CardReader.instance.UpdateGameLog(Owner.playerName + " activates Navarre's Killing Edge skill! " +
                                          "Navarre's attacks cannot be avoided this turn.");

        //set up the call to ensure that Navarre's attacks cannot be evaded.
        DeclareAttackEvent.AddListener(KillingEdge);

        //Displays the effect in the skill tracker.
        AddToSkillChangeTracker("Navarre's Killing Edge active. The opponent cannot evade his attacks.");

        //set up the cancel for this skill at the end of the turn and if the card is removed from the field.
        Owner.endTurnEvent.AddListener(CancelKillingEdge);
        RemoveFromFieldEvent.AddListener(CancelKillingEdge);
    }
Beispiel #4
0
    //Thunder [ACT] [ONCE PER TURN] [FLIP 1] Until the end of the turn, this unit gains +10 attack.
    private void ActivateThunder()
    {
        //removes the callback
        Owner.FinishBondFlipEvent.RemoveListener(ActivateThunder);

        //updates the game log
        CardReader.instance.UpdateGameLog(Owner.playerName + " activates Linde's Thunder skill! " +
                                          "Linde's attack increases by +10 until the end of the turn.");

        //increases attack
        attackModifier += 10;

        //prevents reuse this turn.
        thunderUsable = false;

        //Displays the effect in the skill tracker.
        AddToSkillChangeTracker("Linde's Thunder providing +10 attack.");

        //set up the cancel for this skill at the end of the turn and if the card is removed from the field.
        Owner.endTurnEvent.AddListener(CancelThunder);
        RemoveFromFieldEvent.AddListener(CancelThunder);
    }