//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 Levin Sword at the end of the player's turn or when this card leaves the field. private void CancelLevinSword() { //removes the affinity, range boost, and attack penalty. levinSwordActive = false; attackModifier += 10; //removes the skill tracking text and callbacks RemoveFromSkillChangeTracker("Ogma's Levin Sword providing -10 attack, <Tome> affinity, and 1-2 range."); Owner.endTurnEvent.RemoveListener(CancelLevinSword); RemoveFromFieldEvent.RemoveListener(CancelLevinSword); }
//This method cancels the effect of Thunder at the end of the player's turn or when this card leaves the field. private void CancelThunder() { //decreases attack. attackModifier -= 10; //resets the Once Per Turn ability tracker thunderUsable = true; //removes the skill tracking text and callbacks RemoveFromSkillChangeTracker("Linde's Thunder providing +10 attack."); Owner.endTurnEvent.RemoveListener(CancelThunder); RemoveFromFieldEvent.RemoveListener(CancelThunder); }
//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); }
//This method cancels the effect of Steel Bow at the end of the player's turn or when this card leaves the field. private void CancelSteelBow() { //decreases attack. attackModifier -= 10; //resets the Once Per Turn ability steelBowUsable = true; //removes the skill tracking text and callbacks RemoveFromSkillChangeTracker("Gordin's Steel Bow providing +10 attack."); Owner.endTurnEvent.RemoveListener(CancelSteelBow); RemoveFromFieldEvent.RemoveListener(CancelSteelBow); }