Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trainer ev #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Trainer ev #27

wants to merge 2 commits into from

Conversation

JanoChacon
Copy link

A function was added to validate that one of the participants is a Trainer. If so, it returns the Trainer entity closest to the Pokémon (the Pokémon is generated at the same coordinates as the Trainer). I tested it on my local server; please verify if it works correctly in other environments.

I used the public property of the BattleController, since the getOwner of the pixelEntity doesn't work :(
A function was added to validate that one of the participants is a Trainer. If so, it returns the Trainer entity closest to the Pokémon (the Pokémon is generated at the same coordinates as the Trainer).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant