keldaanCommunity / pokemonAutoChess

Pokemon Auto Chess Game. Made by fans for fans. Open source, non profit. All rights to the Pokemon Company.
https://pokemon-auto-chess.com/
GNU General Public License v3.0
1.17k stars 362 forks source link

Ghost Battle abilities duplication fix #2445

Closed Exeatop closed 1 week ago

Exeatop commented 1 week ago

Fixes Ghost Battle duplication for the following abilities:

Payday Pickup Knowledge Thief Eggsplosion Gold Rush

sylvainpolletvillard commented 1 week ago

This test does not check if the player is red team or blue team. Blue team in a ghost matchup still needs to get these bonuses

Also we already have a check in addMoney() function for ghost matchups. A similar check should be done for xp gains and unit gains