Pixelmon Mod - Bug tracker

[8.0.2]The target of moves are confused after Ally Switch takes effect fix completed

Ticket description:
When enemy's move: Ally Switch takes effect in double battle, the target of my moves will some times goes wrong.
It makes it possible for me to attack the original target after Ally Switch takes effect.
For example, my enemy sends out Arceus and Shedinja, I send out Regigigas and Gardevoir. All pixelmons are at level 100, random ivs, without any evs. Gardevoir can only use Confusion, Regigigas can only use Crush Grip, as well as Arceus can only use Tackle, Shedinja can only use Ally Switch.
The first round I take Shedinja as my target and let my Gardevoir use Confusion, Regigigas use Crush Grip. My enemy's Arceus uses Tackle while the Shedinja uses Ally Switch. My moves hit Arceus afer my opponent's Ally Switch, everything goes well.
The second round I take Arceus as my target and use the same moves as round 1, my enemy's Arceus uses Tackle and the Shedinja uses Ally Switch. My moves should hit Shedinja, but they hit Arceus instead.
It seems to be a logic issue, not a big problem. Hope that you can solve it breezily :)

Comments

#21678 Posted by Yoshi7711 » 27 Dec 2020 20:26

While I am completely unsure what causes this issue, I am able to reproduce it in the latest version. Thanks for the report.

#21946 Posted by XpanD » 22 Jan 2021 05:33

Thanks for the report. I've now moved this to our internal tracker, and we will update this ticket when we know more.

Ticket details

  • Ticket ID: 14775
  • Project: Pixelmon Mod
  • Status: Fix completed
  • Component: Battle
  • Project version: 1.12.2-8.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: forge 14.23.5.2854 (both in client and server)
  • What else would be useful to know?: Java 1.8, nucleus 1.14.2
  • Assigned to: Yoshi7711
  • Reported by: wujichen158 (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 25 Jun 2020 21:50
  • Ticket last visited by: Katzyn on 15 Apr 2022 07:25
JOIN THE TEAM