Thutmose / Pokecube

Primary Development has moved to: https://github.com/Pokecube-Development
https://github.com/Pokecube-Development
19 stars 7 forks source link

Trainer dies but gives out emeralds #321

Closed Philosyang closed 5 years ago

Philosyang commented 5 years ago

Issue Description:

Trainer dies but gives out emeralds.

What happens:

Trainer dies but gives out emeralds.

What you expected to happen:

Trainer dies and no emeralds are given.

Steps to reproduce:

  1. Come to a trainer.
  2. The trainer wants to battle.
  3. The trainer sends out a pokemon.
  4. Slay the trainer.
  5. Get emeralds for winning.

image


Affected Versions:

Thutmose commented 5 years ago

Dead trainers shouldn't be giving emeralds, I will see if I can find out why that message is being sent.

If you kill the trainer, you shouldn't get anything from them.

Philosyang commented 5 years ago

It's probably because the pokemon disappears/dies after their trainer dies.

Thutmose commented 5 years ago

This should be fixed for the next release