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.15k stars 359 forks source link

Ghost Battle abilities duplication fix #2445

Closed Exeatop closed 18 hours ago

Exeatop commented 20 hours ago

Fixes Ghost Battle duplication for the following abilities:

Payday Pickup Knowledge Thief Eggsplosion Gold Rush

sylvainpolletvillard commented 19 hours 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