SheerSt / pokewilds

PokeWilds - A Gen 2 Game/Engine using libGDX
2.71k stars 206 forks source link

[Bug]: Ghost type pokémons don't take confusion damage #396

Open DrakEmono opened 1 year ago

DrakEmono commented 1 year ago

Game Version

v0.8.8

Platform

Windows 10 64 bit

What happened?

I saw that someone had this bug with dusclops and gengar, and I can confirm that it happened with my sableye and a wild duskull. When supposing to take damage from confusion, nothing happens. Opened a new issue using the new format, hoping it helps.

What should've happened? (Optional)

The ghost pokémons are supposed to take damage from confusion.

DayBreakShifter commented 1 year ago

Without looking at the code, if I had a guess for what's happening here, it's that Confusion damage, just like Struggle, is being counted as Normal-type damage. That's my best guess since, as you said, the only type it doesn't affect are Ghost-types.