예제 #1
0
    //Removes the call to this card's skills when the card leaves the field.
    public override void DeactivateFieldSkills()
    {
        Owner.deployTriggerTracker.RemoveListener(this);
        DeclareAttackEvent.RemoveListener(AbilitySupport.AntiFliers);

        RemoveFromFieldEvent.Invoke(this);
    }
예제 #2
0
    //Removes the call to this card's skills when the card leaves the field.
    public override void DeactivateFieldSkills()
    {
        Owner.Opponent.AttackTargetHandler.RemoveListener(this);
        RemoveFromSkillChangeTracker("Abel's Paladin's Protection skill is active.");

        DeclareAttackEvent.RemoveListener(CheckTwinStrike);

        RemoveFromFieldEvent.Invoke(this);
    }
예제 #3
0
    //This method cancels the effect of Killing Edge at the end of the player's turn or when this card leaves the field.
    private void CancelKillingEdge()
    {
        //removes the cannot be evaded clause from Navarre's attacks.
        DeclareAttackEvent.RemoveListener(KillingEdge);

        //removes the skill tracking text and callbacks
        RemoveFromSkillChangeTracker("Navarre's Killing Edge active. The opponent cannot evade his attacks.");
        Owner.endTurnEvent.RemoveListener(CancelKillingEdge);
        RemoveFromFieldEvent.RemoveListener(CancelKillingEdge);
    }
예제 #4
0
    //This method cancels the effect of Excalibur at the end of the player's turn or when this card leaves the field.
    private void CancelExcalibur()
    {
        //Remove the Anti-Fliers effect.
        DeclareAttackEvent.RemoveListener(AbilitySupport.AntiFliers);

        //reset the once per turn counter.
        excaliburUsed = false;

        //removes the skill tracking text and callbacks
        RemoveFromSkillChangeTracker("Excalibur active; Merric possesses the Anti-Fliers skill.");
        Owner.endTurnEvent.RemoveListener(CancelExcalibur);
        RemoveFromFieldEvent.RemoveListener(CancelExcalibur);
    }
예제 #5
0
    //Removes the call to this card's skills when the card leaves the field.
    public override void DeactivateFieldSkills()
    {
        Owner.deployTriggerTracker.RemoveListener(this);
        Owner.endTurnEvent.RemoveListener(ResetHoLOncePerTurn);

        if (!PrinceOfLightUseable)
        {
            ResetHoLOncePerTurn();
        }

        DeclareAttackEvent.RemoveListener(Falchion);

        RemoveFromFieldEvent.Invoke(this);
    }
예제 #6
0
    //Removes the call to this card's skills when the card leaves the field.
    public override void DeactivateFieldSkills()
    {
        //confirm it's the owner's turn, and if so, then cancel Fighter's Expertise.
        if (GameManager.instance.turnPlayer == Owner)
        {
            CancelFightersExpertise();
        }

        //removes the callbacks
        Owner.BeginTurnEvent.RemoveListener(FightersExpertise);
        Owner.endTurnEvent.RemoveListener(CancelFightersExpertise);
        DeclareAttackEvent.RemoveListener(CheckFormationSkill);

        RemoveFromFieldEvent.Invoke(this);
    }
예제 #7
0
    //Removes the call to this card's skills when the card leaves the field.
    public override void DeactivateFieldSkills()
    {
        DeclareAttackEvent.RemoveListener(ArmorExpertise);

        RemoveFromFieldEvent.Invoke(this);
    }