Shauren
f2f47f774f
Core/PacketIO: Add a validating string helper class for use in packet classes
2020-03-18 23:20:11 +01:00
treeston
01b2ac3ed4
Core/Chat: Disallow hyperlinks from being inserted in various guild-related freetext fields (the client already blocks this)
2020-03-15 19:48:13 +01:00
Shauren
425f588525
Core/PacketIO: Updated and enabled CMSG_WORLD_TELEPORT (GM opcode)
...
(cherry picked from commit 7632e11825 )
2020-03-12 17:10:13 +01:00
ForesterDev
af6d207add
Core/PacketIO: update some combat packets to new system ( #24236 )
2020-03-12 17:06:15 +01:00
ForesterDev
ffede34ba9
Core/Misc: Moved CanSpeak() method to WorldSession class ( #24209 )
...
* Core/Misc: Moved CanSpeak() method to WorldSession class
(cherry picked from commit 93aa30f447 )
# Conflicts:
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Handlers/ChatHandler.cpp
# src/server/game/Server/WorldSession.cpp
* fix merge conflicts
2020-02-28 19:53:35 +01:00
ForesterDev
f6e6baa293
Core/PacketIO: update SMSG_EMOTE / CMSG_EMOTE packets to new system ( #24200 )
...
* Core/PacketIO: update SMSG_EMOTE / CMSG_EMOTE packets to new system
* Change int32 to uint32
2020-02-28 19:29:05 +01:00
ForesterDev
58313fc330
Core/PacketIO: update cinematic packets to new system. Implement CMSG_OPENING_CINEMATIC and CMSG_COMPLETE_MOVIE ( #24135 )
...
* Server/PacketIO: Enable SMSG_TRIGGER_CINEMATIC & SMSG_TRIGGER_MOVIE.
* Update SMSG_TRIGGER_CINEMATIC & SMSG_TRIGGER_MOVIE to new Format.
Signed-off-by: AriDEV <aridev666@gmail.com >
# Conflicts:
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Server/Packets/MiscPackets.cpp
# src/server/game/Server/Packets/MiscPackets.h
# src/server/game/Server/Protocol/Opcodes.cpp
* Core/Scripts: Add server-side script support for movie completion (#18308 )
# Conflicts:
# src/server/game/Entities/Player/Player.h
# src/server/game/Handlers/MiscHandler.cpp
# src/server/game/Scripting/ScriptMgr.h
# src/server/game/Server/Packets/MiscPackets.h
# src/server/game/Server/Protocol/Opcodes.cpp
# src/server/game/Server/WorldSession.h
* Core/PacketIO: CMSG_COMPLETE_CINEMATIC, CMSG_NEXT_CINEMATIC_CAMERA and enabled some opcodes
# Conflicts:
# src/server/game/Server/Protocol/Opcodes.cpp
# src/server/game/Server/WorldSession.h
* Core/Protocol: Implemented CMSG_OPENING_CINEMATIC
# Conflicts:
# src/server/game/Handlers/GuildHandler.cpp
# src/server/game/Server/Protocol/Opcodes.cpp
# src/server/game/Server/WorldSession.h
* fix build
Co-authored-by: Krudor <erikstrandberg93@hotmail.com >
Co-authored-by: MitchesD <majklprofik@seznam.cz >
Co-authored-by: Kaelima <kaelima@live.se >
2020-02-08 20:37:34 +01:00
ForesterDev
ba1e5cd413
Core/PacketIO: convert some packets to to new packet class ( #24100 )
...
* Core/PacketIO: updated SMSG_INVALIDATE_PLAYER, SMSG_BINDER_CONFIRM, SMSG_BIND_POINT_UPDATE, SMSG_PLAYER_BOUND and SMSG_LOGIN_SET_TIME_SPEED
* small corrections
2020-02-01 14:49:38 +01:00
Aokromes
ed93932537
New year
...
Say bye bye to every year changing dates
2020-01-02 06:25:50 +01:00
Giacomo Pozzoni
fb059722fd
Core/Calendar: Add some additional validation when creating events ( #23797 )
...
* Core/Calendar: Add some additional validation when creating events
Allow only 30 player events and 100 guild events to be created.
Don't allow to create guild events if player is not in guild.
Send some more error messages to the client (not blizzlike errors but better than nothing).
* Core/Calendar: Add some additional validation/checks
Add guild id check in GetPlayerEvents().
Change error message in HandleCalendarCopyEvent() to be the same as in HandleCalendarAddEvent() when creating an event in the past.
* Core/Calendar: Add some additional validation/checks
Reduce the number of CMSG_CALENDAR_ADD_EVENT packets a seconds allowed from 10 to 3.
* Core/Calendar: Add some additional validation/checks
Implement 5 seconds cooldown between the creation of calendar events
* Core/Calendar: Add some additional validation/checks
Don't allow to copy events of a different player/guild
* Core/Calendar: Implement automatic deletion of old events
Implement automatic deletion of events older than 1 month (30 days).
Fix debug assertion triggered when deleting a character with calendar events.
Avoid double std::set lookup when deleting events when deleting a character.
NB: The whole CalendarMgr/CalendarHandler code should be checked line by line for bugs/crashes/exploits.
2019-09-17 09:11:56 +02:00
ForesterDev
07e2264964
Core/PacketIO: updated SMSG_PLAY_SOUND, SMSG_PLAY_MUSIC and SMSG_PLAY_OBJECT_SOUND ( #23636 )
...
* Core/PacketIO: SMSG_PLAY_SOUND
(cherry picked from commit 82a33c7fa8 )
# Conflicts:
# src/server/game/Battlefield/Battlefield.cpp
# src/server/game/Battlegrounds/Battleground.cpp
# src/server/game/Battlegrounds/BattlegroundMgr.cpp
# src/server/game/Battlegrounds/BattlegroundMgr.h
# src/server/game/Entities/Object/Object.cpp
# src/server/game/Server/Packets/MiscPackets.cpp
# src/server/game/Server/Protocol/Opcodes.cpp
# src/server/game/Texts/CreatureTextMgr.cpp
# src/server/game/Texts/CreatureTextMgr.h
# src/server/scripts/Commands/cs_misc.cpp
* Update for 3.3.5
* Core/PacketIO: updated and enabled SMSG_PLAY_MUSIC
(cherry picked from commit c6718dc120 )
# Conflicts:
# src/server/game/Maps/Map.cpp
# src/server/game/Server/Packets/MiscPackets.cpp
# src/server/game/Server/Protocol/Opcodes.cpp
# src/server/game/Server/Protocol/Opcodes.h
# src/server/game/Spells/SpellEffects.cpp
* Core/Packets: added SMSG_PLAY_OBJECT_SOUND packet class
(cherry picked from commit 1272e9eea6 )
# Conflicts:
# src/server/game/Server/Packets/MiscPackets.cpp
# src/server/game/Server/Packets/MiscPackets.h
# src/server/game/Server/Protocol/Opcodes.cpp
* fic build
* change variable names
* fix build error field will be initialized after
2019-08-23 19:28:21 +02:00
Shauren
713dd276a7
Core/PacketIO: Fixed structure of SMSG_AUCTION_COMMAND_RESULT
2019-07-31 20:33:47 +02:00
ForesterDev
b9756de7e5
Core/PacketIO: Updated SMSG_OVERRIDE_LIGHT ( #23635 )
...
* Core/PacketIO: Updated SMSG_OVERRIDE_LIGHT
(cherry picked from commit 4c94108ba9 )
# Conflicts:
# src/server/game/Maps/Map.cpp
# src/server/game/Server/Packets/MiscPackets.cpp
# src/server/game/Server/Packets/MiscPackets.h
# src/server/game/Server/Protocol/Opcodes.cpp
2019-07-25 11:08:31 +02:00
ForesterDev
adbb8da025
Core/PacketIO: updated totem packets ( #23634 )
...
(cherry picked from commit 5c813f6f02 )
# Conflicts:
# src/server/game/Entities/Totem/Totem.cpp
# src/server/game/Handlers/SpellHandler.cpp
# src/server/game/Server/Protocol/Opcodes.cpp
# src/server/game/Server/WorldSession.h
2019-07-25 10:32:31 +02:00
Shauren
86b516c3f2
Core/Addons: Fixed Blizzard_* addons insecure lua errors
...
Closes #23599
2019-07-16 17:10:28 +02:00
Shauren
01124c6f4e
Fix clang build
2019-07-15 18:30:17 +02:00
Shauren
cd3d317ebf
Core/Addons: Improve WorldSession::ReadAddonsInfo
...
* Only allow built-in addons to be marked as secure
* Better protect against malformed packets
2019-07-15 17:47:35 +02:00
ccrs
bbb9d94acc
Core/Server: 3785a35 followup
2019-07-14 13:21:49 +02:00
ccrs
3785a35511
Server/Packets: implement SMSG_RESYNC_RUNES packet structure
2019-07-13 18:58:04 +02:00
Nayd
9a9af3cc5f
Core/Packets: Update and enable SMSG_WEATHER
...
(cherry picked from commit 6f7d048765 )
2019-07-09 21:17:59 +02:00
Aokromes
574a7c8d3d
Core/Misc: More coding standards ( #23519 )
...
* Core/Misc: More coding standards
* revert part
* "void " or more to "void "
* fix? reject
* remove more double whitespaces
* remove more double whitespaces
* more standards
* more coding standards
* More standards
* more coding
* more coding standards
* more coding standards
* And more standards
2019-07-08 12:51:42 +02:00
ccrs
401777d024
Core/Unit: rename several getters to follow codestyle
...
uint8 GetLevel()
uint8 GetLevelForTarget(WorldObject const* /*target*/)
void SetLevel(uint8 lvl)
uint8 GetRace()
uint32 GetRaceMask()
uint8 GetClass()
uint32 GetClassMask()
uint8 GetGender()
2019-07-01 21:36:32 +02:00
Treeston
396f87c30d
Entities/Unit: Cleanup all the direct accesses to m_unitMovedByMe. Refactor the field to be protected. Add assertions to catch dangling pointers.
2019-06-23 16:44:37 +02:00
Wyrserth
e906a2fe7d
Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes ( #23398 )
...
* Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes.
* Add #23396 to make testing easier.
* Prioritize assistants in raids.
* Fix dumb mistake and apply suggested change, thanks VincentVanclef and jackpoz!
2019-06-15 14:19:58 +02:00
jackpoz
a0bd68cf46
Core/Misc: Fix static analysis issues reported by Coverity
2019-05-18 16:12:23 +02:00
Chaouki Dhib
50d32fe493
Core/Movement: fix mistake in previous commit
...
975f1e364a
2019-04-15 23:47:23 +02:00
Chaouki Dhib
975f1e364a
Core/Movement: Add time synchronisation ( #18189 )
2019-04-15 23:31:25 +02:00
ccrs
d8819147b0
Core/Misc: update SMSG_UPDATE_WORLD_STATE uses
2019-01-17 11:52:38 +01:00
ccrs
bcb0b03fac
Server/Packets: port WorldStatePackets from master
2019-01-17 11:06:35 +01:00
Treeston
fcfcb0eb6f
Happy New Year, folks. It's 2019!
2019-01-01 15:45:25 +01:00
Shauren
bd21917ad6
Core/PacketIO: Fixed naming for SMSG_TRAINER_LIST profession related fields
2018-12-30 19:51:36 +01:00
Ghaster
bf3ab6d9c4
Core/Creatures: Port trainer changes from master
...
Closes #20493
2018-12-30 19:51:36 +01:00
ccrs
7417cbc655
Core/Shared: add BattlefieldBattleId definitions
...
Also rename BG_TEAMS_COUNT and BattlegroundTeamId
2018-10-24 16:45:26 +02:00
Treeston
e858706270
Core/Chat: Some hyperlink follow-ups:
...
* Ignore messages containing invalid links again instead of trying to sanitize them. Closes #22451 .
* No longer filter messages on the addon channel. Closes #22450 .
2018-09-18 01:28:57 +02:00
jackpoz
deabd4ab45
Core/Packets: Reduce memory footprint of cached queries ( #22297 )
...
Ensure only the minimum required memory is used by caching query packets by calling shrink_to_fit()
2018-08-22 19:44:21 +02:00
Treeston
8a4858bdcf
Core/Handlers: Spell handler no longer downranks otherwise-negative spells because they have a potentially-positive aura effect. Closes #22153 .
2018-07-19 12:46:31 +02:00
Treeston
2ef9d301f0
Misc: Pass std::chrono types by value everywhere.
2018-07-18 17:48:15 +02:00
Shauren
0ead73516a
Core/Misc: Improved ip2location code and set it to disabled by default
2018-06-23 21:31:09 +02:00
Gooyeth
2fe4ab94c5
Common: Replace ip2nation by ip2location. ( #21957 )
...
Replace ip2nation by ip2location.
Download: https://lite.ip2location.com/database/ip-country
2018-06-23 01:32:39 +02:00
Shauren
fcb1e3e642
Core/PacketIO: Added missing move assignment operator to ByteBuffer
2018-04-19 17:35:57 +02:00
Shauren
9617778336
Core/Players: Greatly simplifiy fdb2b90685
2018-04-11 00:05:59 +02:00
Shauren
fdb2b90685
Core/Players: Prevent creating characters with duplicate name by reserving name early in the process
...
Closes #21656
Closes #21809
2018-04-10 20:57:34 +02:00
ariel-
078b621c74
Core/Packet: nopch
2018-03-10 04:01:17 -03:00
ariel-
bc73251f3b
Misc: fix bad copyright header
2018-03-10 03:57:32 -03:00
ariel-
0c2a6dee07
Core/Spell: fix spell visual for other players
...
- Ported SMSG_SPELL_GO and SMSG_SPELL_START to new packet system
2018-03-10 03:55:14 -03:00
ariel-
c099174ff7
Core/Misc: fix some /W4 warnings and some reported by GCC 6.3
2018-01-22 23:55:33 -03:00
Shauren
b2b4f9d1e4
Core/Misc: Added compatibility layer for boost 1.66 and future std:: networking stuff
...
* Based on work done by @dimiandre in PR #21173
Closes #21171
Closes #21173
(cherry picked from commit dfd2660a85 )
2018-01-06 12:30:28 +01:00
Treeston
532ab1c7f8
Core: Combat/threat system rewrite (PR #19930 )
...
- PvE combat is now always mutual. UNIT_FLAG_IN_COMBAT is backed by actual references to the units we're in combat with.
- PvP combat is now also tracked, and almost always mutual; spells like Vanish and Feign Death can break this rule. That means we can easily determine a list of players we're fighting.
- By extension, IsInCombatWith now has sensible behavior when invoked on nonplayers.
- Threat and combat systems are no longer the same.
- They still have an enforced relationship (threat implies combat - clearing combat clears threat)...
- ...but we can have combat without threat. A creature (with threat list) isn't considered to be engaged until it has an entry on its threat list...
- ...which means we can now faithfully replicate retail engage behavior. Combat on projectile launch - engagement start on projectile impact. Yay for progress!
- AI method refactor, as already ported in 6113b9d - `JustEngagedWith`, `JustEnteredCombat` and `JustExitedCombat`.
- Vehicle threat is now properly pooled on the main vehicle body (fixes #16542 ).
- Various edge case bug fixes for threat redirects (Misdirection "cancelling" Vigilance and similar).
- Target re-selection is now significantly faster.
- Fixed a ton of other smaller edge case bugs, probably.
Closes #7951 and #19998 .
2018-01-03 20:04:19 +01:00
tkrokli
f6b6f57a6d
Update copyright note for 2018
...
Best wishes for the new year.
2018-01-01 01:55:29 +01:00
jackpoz
12701cb0c6
Core/Misc: Replace time(NULL) with GameTime::GetGameTime()
2017-12-24 22:50:59 +01:00