Comments (5)
What does it look like when you remove the Klutz ability?
from damage-calc.
The Iron Ball speed drop is properly applied.
from damage-calc.
I suspect the issue comes from the fact that checkItem
gets rid of the item entirely if Klutz is the Ability. Since checkItem
is common to all generations, one might want to keep track of the old item near the start of calculateDPP
and compare with it on this line.
from damage-calc.
That line appears to deal with the grounding effect of Iron Ball, which according to Bulbapedia, gets ignored by Klutz. In other words, Klutz allows the speed to be halved still, but doesn't allow the Pokemon to be grounded. However, this line and this line might have something to do with how the damage calc handles the speed of the Pokemon.
from damage-calc.
You're right, i linked you to a completely wrong reference, sorry about this.
Your second link is the checkItem
function that is common to all generations. Probably not being modified, due to possible side effects in the other calculators split per generation.
Your first link is indeed where the speed drop is supposed to be applied, but since checkItem
was already called previously and discards the item even in the case of an Iron Ball, the item is gone. Thus the drop is not put inside speedMods
.
from damage-calc.
Related Issues (20)
- Stored Power base power calculation HOT 1
- Extremely high base power moves (e.g. max boosted Last Respects) cause impossible damage calculations HOT 5
- Update npm package to support Gen 9 HOT 7
- Randbats calculator not loading data
- RBY 0 damage bug
- Incorrect handling of Pokemon names containing é HOT 1
- Big Root not working in Generation 9 / SV
- Random Battle Button wrapping around to new row HOT 1
- Zoroark and Zoroark-Hisui automatically fill their level as being Level 0 for all legal generations HOT 2
- Add tera raids specific functionalities/battle format
- Fix Kleavor's base stats
- Add Palafin's sets to Palafin-Hero
- Example in README doesn't work with gen 9 HOT 2
- Calculator does not properly consider Protosynthesis / Quark Drive Def/SpD boosts
- Feat: Calculate damage for Pain Split HOT 3
- Set from previous generation appears in the list HOT 2
- Feature Request: HTTP GET Params HOT 1
- Brendan SS Anne Pokemon missing HOT 3
- Miracle Seed is removed when there is any active Terrain
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from damage-calc.