smogon / damage-calc

Pokemon games damage calculator
https://calc.pokemonshowdown.com
MIT License
397 stars 367 forks source link

Use a list of abilities to make Mold Breaker actually correct #656

Closed shrianshChari closed 1 month ago

shrianshChari commented 1 month ago

647 would sometimes fail to ignore abilities that should have been ignored. A hardcoded list of abilities (as suggested by jetou) is just the easiest way to have all behavior be correct.

Both Zacian have Leftovers and Ice Scales: Before: 252 SpA Lunala Moongeist Beam vs. 252 HP / 252 SpD Ice Scales Zacian: 61-72 (15.7 - 18.5%) -- possible 8HKO

After: 252 SpA Lunala Moongeist Beam vs. 252 HP / 252 SpD Zacian: 123-145 (31.7 - 37.3%) -- guaranteed 4HKO after Leftovers recovery

thejetou commented 1 month ago

Thanks.