[BR] Wigglytuff (JU 32). PlusPower (BS 84). Not sure why I hit 60 on the last turn s

Wigglytuff (JU 32). PlusPower (BS 84). Not sure why I hit 60 on the last turn shouldve been 70


------------------Begin Game Log------------------
The game is about to start
Type: Career
Format: Base–Fossil
Battle begins between Cybershroom and Rofa!
[Cybershroom]: Rofa of bread
Coin flip [Opening Flip]: HEADS
Cybershroom will start
Game setup complete
Between turns
Turn 1 begins
Cybershroom drew 1 card
Put Magmar (FO 39) onto bench.
Put Jigglypuff (JU 54) onto bench.
Attached a [R] Energy to Magmar
DEBUG: Magmar's Current_Energy_Cards: [[R] Energy]
Doduo retreated.
Magmar is now active
Cybershroom played PlusPower (BS 84).
Cybershroom played Lass (BS 75).
Put [Computer Search (BS 71), Scoop Up (BS 78), Bill (BS 91), Energy Removal (BS 92)] to Deck
Rofa has shuffled deck.
Put [Professor Oak (BS 88)] to Deck
Cybershroom has shuffled deck.
[Cybershroom]: ya dont need those
Magmar used Smokescreen
Smokescreen effect is activated.
PlusPower +10
Magmar did 20 damage to Chansey
PlusPower (BS 84) was discarded
Between turns
Turn 2 begins
Rofa drew 1 card
Attached a [W] Energy to Chansey
DEBUG: Chansey's Current_Energy_Cards: [[W] Energy]
Between turns
Turn 3 begins
Cybershroom drew 1 card
Smokescreen effect fades.
Magmar used Smokescreen
Smokescreen effect is activated.
Magmar did 10 damage to Chansey
Between turns
Turn 4 begins
Rofa drew 1 card
Attached a [W] Energy to Chansey
DEBUG: Chansey's Current_Energy_Cards: [[W] Energy, [W] Energy]
Coin flip [Smokescreen]: HEADS
Chansey used Scrunch
Coin flip [Scrunch]: HEADS
Chansey won't receive any damage next turn.
Between turns
Turn 5 begins
Cybershroom drew 1 card
Smokescreen effect fades.
Magmar used Smokescreen
Smokescreen effect is activated.
Magmar did 0 damage to Chansey
Between turns
Turn 6 begins
Rofa drew 1 card
Coin flip [Smokescreen]: HEADS
Chansey used Scrunch
Coin flip [Scrunch]: TAILS
Between turns
Turn 7 begins
Cybershroom drew 1 card
Smokescreen effect fades.
Attached a Double Colorless Energy (BS 96) to Jigglypuff
DEBUG: Jigglypuff's Current_Energy_Cards: [Double Colorless Energy (BS 96)]
Cybershroom played Computer Search (BS 71).
Cybershroom has shuffled deck.
Cybershroom played Professor Oak (BS 88).
Cybershroom drew 7 cards
Cybershroom played Bill (BS 91).
Cybershroom drew 2 cards
Cybershroom played Bill (BS 91).
Cybershroom drew 2 cards
Jigglypuff evolved into Wigglytuff (JU 32)
Cybershroom played Pokémon Trader (BS 77).
Pokemon Trader trades a [Doduo (BS 48)] in hand for a [Dodrio (JU 34)] from deck!
Put [Doduo (BS 48)] to Deck
Put [Dodrio (JU 34)] to Hand
Cybershroom has shuffled deck.
Doduo evolved into Dodrio (JU 34)
Magmar used Smokescreen
Smokescreen effect is activated.
Magmar did 10 damage to Chansey
Between turns
Turn 8 begins
Rofa drew 1 card
Rofa played PlusPower (BS 84).
Rofa played Computer Search (BS 71).
Rofa has shuffled deck.
Rofa played Professor Oak (BS 88).
Rofa drew 7 cards
Rofa played Bill (BS 91).
Rofa drew 2 cards
Put Articuno (FO 2) onto bench.
Attached a [W] Energy to Articuno
DEBUG: Articuno's Current_Energy_Cards: [[W] Energy]
Rofa played Energy Removal (BS 92).
Double Colorless Energy (BS 96) was discarded
VelorSimadoom is now a spectator of the game
Coin flip [Smokescreen]: TAILS
Smokescreen prevents attack. Turn ends.
Attack failed
PlusPower (BS 84) was discarded
Between turns
Turn 9 begins
Cybershroom drew 1 card
Smokescreen effect fades.
Attached a [R] Energy to Wigglytuff
DEBUG: Wigglytuff's Current_Energy_Cards: [[R] Energy]
Magmar used Smokescreen
Smokescreen effect is activated.
Magmar did 10 damage to Chansey
Between turns
Turn 10 begins
Rofa drew 1 card
Attached a [W] Energy to Articuno
DEBUG: Articuno's Current_Energy_Cards: [[W] Energy, [W] Energy]
Coin flip [Smokescreen]: TAILS
Smokescreen prevents attack. Turn ends.
Attack failed
Between turns
Turn 11 begins
Cybershroom drew 1 card
Smokescreen effect fades.
Attached a Double Colorless Energy (BS 96) to Wigglytuff
DEBUG: Wigglytuff's Current_Energy_Cards: [[R] Energy, Double Colorless Energy (BS 96)]
Cybershroom played Item Finder (BS 74).
Restored a PlusPower to hand.
Cybershroom played PlusPower (BS 84).
Put Ditto (FO 18) onto bench.
Cybershroom played Professor Oak (BS 88).
Cybershroom drew 7 cards
Magmar retreated.
Wigglytuff is now active
Put Jigglypuff (JU 54) onto bench.
Put Magmar (FO 39) onto bench.
Cybershroom played Item Finder (BS 74).
Restored a Lass to hand.
Cybershroom played Energy Removal (BS 92).
[W] Energy was discarded
Cybershroom played Lass (BS 75).
Put [PlusPower (BS 84), Pokémon Breeder (BS 76), Energy Retrieval (BS 81), Super Energy Removal (BS 79)] to Deck
Rofa has shuffled deck.
Put [Item Finder (BS 74)] to Deck
Cybershroom has shuffled deck.
Wigglytuff used Do the Wave
Wigglytuff did 60 damage to Chansey
PlusPower (BS 84) was discarded
Between turns
Turn 12 begins
Rofa drew 1 card
Rofa played Professor Oak (BS 88).
Rofa drew 7 cards
Rofa played Bill (BS 91).
Rofa drew 2 cards
Put Squirtle (BS 63) onto bench.
[Cybershroom]: can i not math
[Cybershroom]: or did i not play plus power
Rofa played Computer Search (BS 71).
Rofa has shuffled deck.
Rofa played Scoop Up (BS 78).
Scooped up [Chansey (BS 3)]
Put [Chansey (BS 3)] to Hand
Put [[W] Energy, [W] Energy] to Discard
[Rofa]: not workin
[Cybershroom]: Oh did it bug out?
Squirtle is now active
Put Chansey (BS 3) onto bench.
Attached a [W] Energy to Squirtle
DEBUG: Squirtle's Current_Energy_Cards: [[W] Energy]
[W] Energy was discarded
Squirtle retreated.
Chansey is now active
Between turns
Turn 13 begins
Cybershroom drew 1 card

The order of these makes it appear like you played/attached a PlusPower onto what was your active Magmar at the time. Then, you retreated into your Wigglytuff to attack with it, while the PlusPower remained attached to your now benched Magmar until it was discarded at the end of your turn.

Triage Agent: Not a bug, the game did the right damage. On turn 11 PlusPower was played while Magmar was still the Active Pokémon, so it was attached to Magmar. Magmar then retreated (for free thanks to Dodrio’s Retreat Aid) and the PlusPower stayed on Magmar on the Bench. Wigglytuff’s Do the Wave got no bonus: 10 + 10 for each of the 5 Benched Pokémon (Dodrio, Ditto, Magmar, Jigglypuff, Magmar) = 60. The PlusPower was then discarded from Magmar at the end of the turn.

This is the official WotC ruling: “If you attach a PlusPower to Scyther and then retreat for Hitmonchan and do Jab, will Hitmonchan do 30 instead of 20? A. The Plus Power will stay attached to the Pokémon you put it on. It will not be in effect for the Hitmonchan.” (WotC Chat, June 1, 2000). To boost Wigglytuff, play PlusPower after it becomes your Active Pokémon. Thanks to NoYawns for spotting it.

A test replays the turn (60 damage, no PlusPower line) and was added to the engine tests as a regression test (23a3ae774).