Pixelmon Mod - Bug tracker

[9.1.3]Misty Terrain counts almost the same benefits as Electric Terrain when used by AI fix completed for upcoming version

Ticket description:
As the title suggests, while I was coding with terrains, I found that the countBenefits() method of the Misty Terrain status seems to work mostly the same as the one in Electric Terrain. But Misty Terrain should count all status conditions and confusion status besides the sleep related status. Hope that ur guys could have a check and fix it. :)

Comments

#29370 Posted by Decent60 » 03 Mar 2023 04:48

Greetings,

I'm unsure about what you're referring to in this context.
If Misty Terrain is in-effect, status moves will fail to apply (such as Will-O-Wisp, Confuse Ray or Stun Spores).
This is not the case when Electric Terrain where Sleep is the only one not being applied.

These were both tested against PvP and Trainer.

#29374 Posted by wujichen158 » 03 Mar 2023 05:34

No, I mean, battle AI would only take the benefits about sleep related status into account instead of all status while calculating the benefits of using Misty Terrain. Since <b>countBenefits()</b> method is used for AI benefits calculation while having battles. It's not the issue of Misty Terrain effect. I've explained in the discord programming channel yesterday and oa said it worth a ticket. Maybe I should post this ticket in Other Component instead of Battle Component, my bad.

#29375 Posted by Decent60 » 03 Mar 2023 05:46

Greetings,

I see his reply. I'll forward it up and let the dev's sort it out.

Thanks!!!

#29376 Posted by wujichen158 » 03 Mar 2023 05:48

Kk, thx~ :)

Ticket details

  • Ticket ID: 20174
  • Project: Pixelmon Mod
  • Status: Fix completed for upcoming version
  • Component: Battle
  • Project version: 1.16.5-9.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: Forge 36.2.39
  • What else would be useful to know?: Java 1.8
  • Assigned to: Decent60
  • Reported by: wujichen158 (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 28 Feb 2023 21:43
  • Ticket last visited by: Decent60 on 06 May 2023 01:21
JOIN THE TEAM