[BR] Engine: Knock Outs from damage are checked before the attack finishes (Whirlwind, Focus Sash, sturdy) (from Trello)

Copied from the Trello card Make KOs caused by damage not happen until the attack is finished (label: engine). Created by starg09 on 2020-07-02; latest comment 2025-11-04; moved to In Progress by axpendix on 2026-02-26. This is an engine-wide change rather than a single card.

Description (starg09, 2020-07-02, edited up to 2020-07-05)

This affects a multitude of cards, but for a specific case most of those using whirlwind() post some amount of damage. Proper order would be:

Damage applied → afterDamage → Switch triggers (opponent is asked for new active) → switch happens → Attack finishes → KOs are checked

However, as of right now KOs are checked before afterDamage happens, for Pokémon damaged. Placing the switch events prior to afterDamage isn’t a solution either, as in that case the damage is placed once the active was benched (thus being subject to blockers such as Bench Barrier, Sky Pillar and Submerge). KOs should only be checked in the middle of an attack if explicitly asked, otherwise it should finish placing all damage, applying all effects and reactions to said attack, and only then checking for KOs.

Edit: This also affects retreating/switching: forum 10330

Edit 2: Another kind of ability that may be affected: currently sturdy-like powers (“If this Pokémon has full HP and would be Knocked Out by damage from an attack, this Pokémon is not Knocked Out, and its remaining HP becomes 10.”) do the following:

  • Detect the damage before being finally applied.
  • Is the sturdy card at full health, and receiving enough damage for it to be KO’d?
  • If so, damage output is reduced so it stays at 10HP.

That last step is flawed: Pokémon should receive all the damage, be marked for KO, and only then be prevented from being KO’d and healed back to 10HP. Sounds trivial, but the difference matters for cards like Ninja Boy that allow use of other cards that count total damage applied the previous turn.

Still open (YZ, 2025-11-04)

Still bugged.

  1. The Whirlwind example: I came up with this scenario to test. Suppose the opponent has an Active Shedinja DX with Cessation Crystal attached, and one other mon (without Cess) on their Bench. You attack with Drifblim LA’s Whirlwind. What should happen is that Shedinja gets 60 damage put onto it, but gets sent to the Bench first, and only then are KOs checked. Since Shedinja is now Benched, Cessation Crystal has no effect, so you don’t get to take a Prize for the KO. Instead Shedinja is KOed when it is still Active and you get to take a Prize.
  2. The Primal Groudon-EX example (2020-08-21 comment below): The Sash-ed mon is KOed instead of surviving with 10 HP.

Comment history (oldest first)

starg09, 2020-07-05: added Edit 2 (sturdy abilities).

A since-deleted Trello user, 2020-08-21: another example:

Q. If Lysandre Labs is in play and I use Primal Groudon’s “Gaia Volcano” attack to discard the stadium and do enough damage for KO, what happens if the full HP Fighting-type Defending Pokemon has Focus Sash attached to it?
A. While Lysandre Labs is in play Focus Sash has no effect. However, Lysandre Labs is discarded as part of the attack before KO’s are checked. So the Focus Sash would be in effect and if all of its conditions are met the Defending Pokemon is not KO’d but has 10HP remaining. (May 31, 2018 TPCi Rules Team)

axpendix, 2020-10-26: “Would this be resolved if we simply removed some CheckFaint calls, such as the ones in DirectDamage, Retreat, CheckAbilities, Evolve, LevelUp, ApplyDamages?”

vcunningham, 2020-11-21: “Using the Japanese advanced rules manual at https://www.pokemon-card.com/assets/document/advanced_manual.pdf (Translation attempt: Pokémon TCG Knockout Handling - Pastebin.com). It’s complicated. I’m not actually sure that the Retreat/Switching one is actually incorrect behaviour based on the translations of that document though. If it asks you to choose the Pokémon to place as the active twice then I’d say checking fainting should happen after discarding and skip the selection in Retreat to resolve that. Since you do have to check fainting after other card effects, it probably makes more sense to block the CheckFaint during an attack or Pokémon Checkup (BetweenTurns), then check it at the end. I believe the engine is capable of doing this as well, correct? I assume the last bit is just a bug with those implementations that can be fixed for each of them. Donphan even has code commented out that seems to work as desired. I’m not actually sure why it isn’t being used currently.”

vcunningham, 2020-11-23: “Actually, testing the Switch/Whirlwind case, there is code explicitly preventing actually doing the switch if the Pokémon is knocked out which according to the commit was to fix Rapid Spin issues. Taking this out and doing the CheckFaint blocking in Attack seems to work to fix whirlwind, rapid spin, and retreating though.”

vcunningham, 2020-11-23: “Looks like the same should be true for Trainer cards.”

Q. Can Pokemon be Knocked Out partway through completing the Trainer card?
A. A Pokemon cannot be Knocked Out partway through the Trainer card. You must complete all of the actions of a Trainer card BEFORE you check for game state checks (to see if a Pokemon is Knocked out for example). (Mar 6, 2002 WotC Rules Team Update; Mar 7, 2002 WotC Chat, Q550)

axpendix, 2025-01-04: “I’ve recently pushed a change which removes the CheckFaint call in DirectDamage. I believe this should resolve some interactions and I’d like to have someone check conditions in the description again and update it.”

YZ, 2025-11-04: “Still bugged.” (the two scenarios quoted above)

Note (2026-10-27)

Knock Out checks were touched several times in October 2026 (git a32a08b29, d43ec8915, c9ce9f3c5: interrupted KO checks, Pokémon Checkup KOs). None of them moves the KO check to the end of the attack, so YZ’s two scenarios are presumably still open. This needs a design decision before any fix.

Triage Agent: The engine already checks Knock Outs from an attack only after the whole attack is done (its damage and all its effects). It has worked that way since November 2020 (2132cc381). Status of the cases in this topic:

  • Whirlwind: fixed in 892049610 (2026-10-28), live since the engine update of 2026-11-06. YZ’s case (Drifblim LA’s Whirlwind vs Shedinja DX holding Cessation Crystal): Shedinja is now switched to the Bench first. It is Knocked Out there and Empty Shell works, so no Prize card is taken.
  • Sturdy-like effects: the Pokémon takes all the damage and is then left with 10 HP; the damage is no longer reduced. New regression tests in 29517bfd6: a Sturdy Pokémon at full HP hit by Slaking DET’s Pitch is switched to the Bench and survives there with 10 HP.
  • Still open: Focus Sash vs a Lysandre Labs that Primal Groudon-EX’s Gaia Volcano discards during the attack. The Focus Sash Pokémon is still Knocked Out, but the TPCi ruling of 2018-05-31 says it survives with 10 HP. A fix is waiting on a design decision, so this topic stays open.

Triage Agent: Fixed (F416, commits 4af5e698f to 081771bb4, not deployed yet). YZ’s scenario 2 now works: a Pokémon Tool or Ability that saves a full-HP Pokémon (“its remaining HP becomes 10”) is now checked when Knock Outs are checked, after the whole attack. So when Primal Groudon-EX’s Gaia Volcano discards Lysandre Labs, a full-HP [F] Pokémon with Focus Sash survives with 10 HP (TPCi 2018-05-31). “Full HP” means it had no damage counters when that attack’s damage was done.

The same change covers Survival Brace, Box of Disaster, Sturdy (Crustle BCR 85 and BLK 52, Donphan LOT 112, Aggron DAA 123), Pikachu ex’s Resolute Heart, Torracat SIT 31’s Gritty Claws and Mismagius SIT 64’s Spiteful Magic. It also fixes Sturdy and Gritty Claws saving a Pokémon from the second attack of Ω Barrage or Festival Lead when the first attack had already damaged it.

Everything this topic reported is now fixed: Whirlwind has been live since the 2026-11-06 engine update, and sturdy effects let the Pokémon take all the damage (29517bfd6).