-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix(Core/Instance): Fix instance resetting exploit #2172
Conversation
- Fix issue with instance reset exploit Co-Authored-By: Lee <talamortis@users.noreply.github.com>
Yeah TC did it a complicated way, Why not just make the player on logout teleport to the start of the instance and then upon successful logout it will then save the location. instead of teleporting the player to a graveyard. |
This fix is too navie. The proper way is to check instance binding status: if current instance binding is not equal to the one saved in dB, then teleport. |
Added a check to see if any players are in the current instance before teleporting the player to the entrance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be fine now with check
How you mean ? I know you don't understand english, let's try like this : 🤔 |
@pklloveyou do you mean that you cannot reproduce the issue? |
Use this https://www.deepl.com/translator |
@pklloveyou you must select Chinese as your language, not German |
It can't detect Chinesse, forwarding to German |
Thank you. I'll give it a try. |
How did you test it ? With and without this PR ? |
No use of this RP, the test found no problem, the team state No. 2 game player in the example offline, No. 1 game player in the instance reset instance, No. 2 game player on the line will be sent to the instance entrance. |
The use of RP, and before use, and found no 2 game player in situ after the line。 |
I'll try again tomorrow. I'm going to bed. it's 2 in the morning.Thank you very much. |
It's fine. Thanks @pklloveyou |
Thank you for the great fix @poszer |
@poszer XD i fixed! |
Yep, he forgot to mention you xD |
i feel lonely now :( |
hahaha both @talamortis and @poszer great work XD |
This fix is just so not blizzlike |
There is another problem that can be reset. 1.A player enters instance"Of course, he needs to be in the team." |
@boom8866 please report a separate issue for that, since this PR is already on master |
@ryancheung in what way is it not blizzlike? |
This problem occurs when you leave the team, join the team, switch teams, and log back into the role |
Given I do solo a instance, then I got disconnected for bad network connection, then I got teleported to entry. This isn't blizzlike. |
Then another check needs to be added, but I no longer work on this source. I would advise opening another issue for this :) |
Feel free to improve it. Since i no longer contribute here. |
Believe me, the best way to handle the exploit is to check instance binding status, through its a bit complex. |
* fix(Core/DB/Quest): Let Them Eat Crow (azerothcore#1680) * Import pending SQL update file... Referenced commit(s): 091e7c1 * fix (Core/Dungeon/Boss Script): Remove Goblin Rocket Pack from inventory. (azerothcore#2095) * fix(Core/Raid/Boss Script): Naxxramas boss loatheb kill event (azerothcore#2098) * fix(DB/SAI): Revamp Crystalweb Cavern (azerothcore#2105) * Import pending SQL update file... Referenced commit(s): 51e54da * chore: improved pull_request_template.md (azerothcore#2166) * chore(README.md): add Discord badge (azerothcore#2162) * fix(DB/Core): Throwing spells for Instructor Razuvious and Drakkari Battle Riders (azerothcore#2109) * Import pending SQL update file... Referenced commit(s): 5e34574 * feat(core/AI): implement DoCastSelf helper (azerothcore#2179) * Updated client data downloader url with vmaps 4.3 * feat(Core/CFBG): Added support module mod-cfbg (azerothcore#2064) https://github.com/Winfidonarleyan/mod-cfbg - Original module https://github.com/azerothcore/mod-cfbg - the fork in AC * fix(Core/Instance): Fix instance resetting exploit (azerothcore#2172) * fix(Core/Instance): Fix instance resetting exploit - Fix issue with instance reset exploit Co-Authored-By: Lee <talamortis@users.noreply.github.com> * Added another check Added a check to see if any players are in the current instance before teleporting the player to the entrance. * fix(DB/SAI): Mirage Raceway - goblin / gnome racing (azerothcore#2119) * Import pending SQL update file... Referenced commit(s): 825fde8 * fix(Scripts/Karazhan): Cleanup in opera event (azerothcore#2163) * fix(Core/Commands): Support morph uint32 ids (azerothcore#1753) * fix(DB/creature): Random movement for "Icemaw Bear" and "Ravenous Jormungar" (azerothcore#2149) * Import pending SQL update file... Referenced commit(s): 0232f0b * fix(Core/SpellInfo): Magmadar's Enrage dispel fix (azerothcore#2146) Putting the Magmadar's Enrage spell as a Buff to make it dispellable. * fix(DB/creature): Thorim position (Temple of Storms) (azerothcore#2160) * Import pending SQL update file... Referenced commit(s): ff1e6c0
Co-Authored-By: Lee talamortis@users.noreply.github.com
CHANGES PROPOSED:
ISSUES ADDRESSED:
Closes #2073
TESTS PERFORMED:
Yes, everything is fine.
HOW TO TEST THE CHANGES:
KNOWN ISSUES AND TODO LIST:
Target branch(es):
Master
How to test AzerothCore PRs
When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].
You can help by testing PRs and writing your feedback here in the PR's page on GitHub. Follow the instructions here:
http://www.azerothcore.org/wiki/How-to-test-a-PR