//Adds calls to this card's skills when the card enters the field. public override void ActivateFieldSkills() { Owner.deployTriggerTracker.AddListener(this); Owner.endTurnEvent.AddListener(ResetHoLOncePerTurn); DeclareAttackEvent.AddListener(Falchion); }
//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); }
//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); }
//Adds calls to this card's skills when the card enteres the field. public override void ActivateFieldSkills() { Owner.Opponent.AttackTargetHandler.AddListener(this); CardReader.instance.UpdateGameLog("Abel's Paladin’s Protection skill prevents Back Line enemies from attacking him or his" + " low cost allies!"); AddToSkillChangeTracker("Abel's Paladin's Protection skill is active."); DeclareAttackEvent.AddListener(CheckTwinStrike); }
//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); }
//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); }
//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); }
//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); }
//Adds calls to this card's skills when the card enteres the field. public override void ActivateFieldSkills() { //confirm it's the owner's turn, and if so, then activate FightersExpertise. if (GameManager.instance.turnPlayer == Owner) { CardReader.instance.UpdateGameLog("Barst's Fighter's Expertise skill provides +20 attack during your turn!"); FightersExpertise(); } //set up the callbacks for Fighter's Expertise. Owner.BeginTurnEvent.AddListener(FightersExpertise); Owner.endTurnEvent.AddListener(CancelFightersExpertise); //Sets up Formation Skill DeclareAttackEvent.AddListener(CheckFormationSkill); }
//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); }
//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); }
//Adds calls to this card's skills when the card enters the field. public override void ActivateFieldSkills() { Owner.deployTriggerTracker.AddListener(this); DeclareAttackEvent.AddListener(AbilitySupport.AntiFliers); }
//Removes the call to this card's skills when the card leaves the field. public override void DeactivateFieldSkills() { DeclareAttackEvent.RemoveListener(ArmorExpertise); RemoveFromFieldEvent.Invoke(this); }
//Adds calls to this card's skills when the card enteres the field. public override void ActivateFieldSkills() { DeclareAttackEvent.AddListener(ArmorExpertise); }
//Adds calls to this card's skills when the card enters the field. public override void ActivateFieldSkills() { DeclareAttackEvent.AddListener(AbilitySupport.AntiFliers); }