StevensSEC / pokemonbattlelib

A portable library for accurately simulating Pokemon battles.
GNU General Public License v3.0
12 stars 2 forks source link

Battle Items #336

Closed adapap closed 3 years ago

adapap commented 3 years ago

This PR adds the following:

A new meta flag was introduced: MetaStatChangeImmune This flag prevents opponents from lowering any stats of a Pokemon, but self-inflicted debuffs are still applicable. This is used in ItemGuardSpec for example, and will probably be used for some moves.

codecov[bot] commented 3 years ago

Codecov Report

Merging #336 (2f6550e) into main (8aa5ba7) will decrease coverage by 0.0347%. The diff coverage is 93.7500%.

:exclamation: Current head 2f6550e differs from pull request most recent head a6ab149. Consider uploading reports for the commit a6ab149 to get more accurate results Impacted file tree graph

@@               Coverage Diff                @@
##               main       #336        +/-   ##
================================================
- Coverage   95.5730%   95.5383%   -0.0348%     
================================================
  Files            14         14                
  Lines          1649       1681        +32     
================================================
+ Hits           1576       1606        +30     
- Misses           58         59         +1     
- Partials         15         16         +1     
Impacted Files Coverage Δ
items.go 100.0000% <ø> (ø)
pokemon.go 96.7741% <ø> (ø)
battle.go 92.5675% <60.0000%> (-0.3710%) :arrow_down:
transactions.go 95.8762% <100.0000%> (+0.4217%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8aa5ba7...a6ab149. Read the comment docs.