39 Commits
Author SHA1 Message Date
ForesterDev 513eb0acb9 Scripts/ICC: update Icecrown Citadel scripts to new model (#25439)
(cherry picked from commit 54b9bb75e47df4491d13b89c28f93dbe3b005dec)
2022-02-27 00:28:25 +01:00
ForesterDev 25bca7bef3 Scripts/ICC: update Gunship Battle scripts to new model (#25438)
(cherry picked from commit 2e1a6aefd0e1cb62dfbe63ae3accc312c2afd519)
2022-02-27 00:28:25 +01:00
ForesterDev 51622e6642 Scripts/ICC: update Deathbringer Saurfang scripts to new model (#25435)
(cherry picked from commit d52acf1b72c702637d10cce19e121435308e8410)
2022-02-06 00:22:36 +01:00
ForesterDev 97a5c29e8a Scripts/ICC: update Deathbringer Lord Marrowgar scripts to new model (#25436)
(cherry picked from commit 1c41c5285a89d7a4038f71c0f5c40dbc1009b3c1)
2022-02-05 22:58:23 +01:00
ForesterDev 8422442ed0 Scripts/ICC: update Blood Queen Lana'thel scripts to new model (#25434)
(cherry picked from commit def58965e8516978594a5d960c603932d34b7b2d)
2022-02-05 22:56:12 +01:00
ForesterDev 2ac0960f3f Scripts/ICC: update Lich King scripts to new model (#25396)
* Scripts/ICC: update Lich King scripts to new model

* fix build

(cherry picked from commit d04bdd0316c5c158da4ec0461b714d04321e8f57)
2022-02-05 11:42:35 +01:00
ForesterDev d250640c6b Scripts/ICC: update Sindragosa scripts to new model (#25395)
(cherry picked from commit deec517239311f06ce4bfa62a930b1b874ef058a)
2022-02-05 11:24:09 +01:00
ForesterDev ceec4ecf35 Scripts/ICC: update Professor Putricide scripts to new model (#25394)
* Scripts/ICC: update Professor Putricide scripts to new model

* fix build

(cherry picked from commit 0b0d5e9beaf0cc2b7c94e0884a4269899c55691c)
2022-02-05 11:10:39 +01:00
ForesterDev 1c22cd7d08 Scripts/ICC: update Lady Deathwhisper scripts to new model (#25393)
(cherry picked from commit aac3ae40f772c65bf976ba68ad24f3643fb69dab)
2022-02-05 10:55:59 +01:00
ForesterDev e294f94617 Scripts/ICC: update Rotface scripts to new model (#25392)
(cherry picked from commit af78f4ffb50fbff62a4321d7798a09abcabd4b40)
2022-02-05 01:10:06 +01:00
ForesterDev f03471c259 Scripts/ICC: update Festergut scripts to new model (#25391)
(cherry picked from commit 458867a2e10d8e6c9a5d7c76b95441d2ab566d31)
2022-02-05 01:04:31 +01:00
ForesterDev 2b4d353bff Scripts/ICC: update Valithria Dreamwalker scripts to new model (#25390)
(cherry picked from commit 71f33d5764b4bf8ce9a2f48aed951bbb65b9750e)
2022-02-05 01:03:08 +01:00
ForesterDev 7241088faa Scripts/Icecrown Citadel: update Blood Council scripts to new model (#25389)
(cherry picked from commit aedb8b80f3585e144fcf07e0e40920a2e2dbba55)
2022-02-05 00:58:05 +01:00
ForesterDev 69cadae38a DB/Account: update account_access table cherry-pick take 2 (with refactors)
(cherry picked from commit 8e0365d8a6ca5628ad17e6684743d9ab2138c068)
2022-01-06 23:28:52 +01:00
ForesterDev 3171cd3fa9 Core/AI: refactor SpellHit and SpellHitTarget. (#24691)
* Core/AI: refactor SpellHit and SpellHitTarget.

- now caster/target is WorldObject instead of Unit
- remove SpellHitByGameObject / SpellHitTargetGameObject (handled by SpellHit / SpellHitTarget)
- rename parameters in scripts according parent methods

* Restore logic in Algalon script

* Changed check for REMORSELESS_WINTER hit to avoid dublicate call, because it has TARGET_UNIT_CASTER for effects 0/1 and TARGET_GAMEOBJECT_SRC_AREA for effect 2

* Fix build after merge

(cherry picked from commit e3b232fe0e5c21a87d3fe71813e9d750259823f1)
2022-01-06 20:46:25 +01:00
ForesterDev 9d38eeec7e Core/Player: add helper methods for PLAYER_FLAGS_DEVELOPER (#24511)
* Core/Player: add helper methods for PLAYER_FLAGS_DEVELOPER. Update .dev command to new command model

* Rename _player -> player

(cherry picked from commit 8128bb97dbf4b5ba7cb0b624ce7cf7428d7bdc63)
2022-01-01 23:18:04 +01:00
ForesterDev 6bddc8ff5e Core/Database: fix wrong password logging (#24487)
(cherry picked from commit 48c700347c91b1748427a8c5b09b8d4099c9a105)
2022-01-01 20:13:25 +01:00
ForesterDev e73735fa61 Core/PacketIO: updated SMSG_DURABILITY_DAMAGE_DEATH (#24442)
- use RATE_DURABILITY_LOSS_ON_DEATH for death from falling
- add note, that RATE_DURABILITY_LOSS_ON_DEATH doesn't change log message

(cherry picked from commit a1831e0c1e)

Co-authored-by: MitchesD <[email protected]>
(cherry picked from commit e1a8ebc064a2e30b4f1d0d129f034ff64368bedc)
2022-01-01 15:25:11 +01:00
ForesterDev 931ca1e546 Core/PacketIO: updated SMSG_FEATURE_SYSTEM_STATUS (#24403)
* Core/Packets: updated SMSG_FEATURE_SYSTEM_STATUS

(cherry picked from commit 231207970b)

* Define complaint status values and replace magic numbers

* Add missing header

Co-authored-by: joschiwald <[email protected]>
(cherry picked from commit bfd73e7f47ec670308f72cbd0dbc42ef80cd7e92)
2022-01-01 14:43:20 +01:00
ForesterDev 08c61bb9d1 Core/PacketIO: update some combat packets to new system (#24236)
(cherry picked from commit af6d207addfef177fb5ac3e7fa61ec93ced83d16)
2021-12-22 23:36:18 +01:00
ForesterDev aa4ee9278f Core/PacketIO: Port refactors from f6e6baa2932788b17169ba103b62a6f66ee7290a (#24200)
(cherry picked from commit f6e6baa2932788b17169ba103b62a6f66ee7290a)
2021-12-22 14:59:13 +01:00
ForesterDev 8c6974bc9f Core/Server: improve timestamp format output for large time values (#24193)
(cherry picked from commit 71a01c75caa767c3323e295a596fe430dc8c7fb2)
2021-12-22 14:55:23 +01:00
ForesterDev 5e178b30fa Core/DynamicInfo: rename some parameters according packet definitions (#24192)
(cherry picked from commit 5cfce94619cc02cc04bb25ccdd2e1b98e53d9160)
2021-12-22 14:54:59 +01:00
ForesterDev 69f7686050 Core/Server: correct timestamp format for shutdown/restart notification broadcasts (#24181)
* Core/SmartScripts: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER

* Core/Server: correct timestamp format for shutdown/restart notification broadcasts

* remove unexpected changes

* move enum from Common to Util

* Use enum class instead of enum

* Fix width for seconds 0 to 9

(cherry picked from commit 69231581e4f2d78384d3efe6f613be1b78e9d40f)
2021-12-22 01:25:24 +01:00
ForesterDev 1d08423725 Core/SmartAI: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER (#24146)
* Core\SmartAI: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER

* Change the invoker of action to any worldobject

* Revert "Change the invoker of action to any worldobject"

This reverts commit 2e15f7258553b7057c3e8f67c54efc77fb6d75b8.

* Add dbc-validations for new actions

* Use GetBaseObject() instead of Creature* for new actions. Add debug-logging

(cherry picked from commit c65ba35269a68c94c3e423f78fa1585f9d89dd04)
2021-12-22 01:15:52 +01:00
ForesterDev 9124fd1f1f Core/Items: implement some helper methods for easier readability (#24113)
(cherry picked from commit 573ddf4d22564d022e30807c5ba2c6eb1a2c8b2e)
2021-12-21 00:46:13 +01:00
ForesterDev 4a47e1c6be Core/Defines: define UNIT_FLAG_SWIMMING (#23630)
(cherry picked from commit c03c88d0c02c5dda9f14dec1ed151ca30a92118e)
2021-12-18 22:50:52 +01:00
ForesterDev 915d13020a Core/Achievements: fixed bug with counting honorless units for achievement type ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL (#23844)
* Core/Achievements: fixed bug with counting honorless units for achievement type ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL

* Remove codestyle changes

* Remove codestyle changes

(cherry picked from commit f4be5446293e9896fe8e1cd9db8dc739af848cae)
2021-12-18 22:47:37 +01:00
ForesterDev 529ca2dd5d Scripts/Defines: cleanup some magic numbers in factions (#23631)
(cherry picked from commit 0c317498a57b3983de61d381d684a77176b281e4)
2021-12-17 20:48:31 +01:00
ForesterDev 61cc88731c Scripts/Commands: update .wp commands to use orientation field from DB (PR #23566)
Closes #23330

(cherry picked from commit e71773140c8efbea4abe612a71d4a65f041d450c)
2021-12-15 00:17:13 +01:00
ForesterDev 104ec7a81a Core/Unit: Implement more helper methods (#23555)
(cherry picked from commit c44fb37f74347e3b6d399c941716971503af4cf8)
2021-12-14 20:42:32 +01:00
ForesterDev 27886c7f5d Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender (#23520)
* Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender and fix some cases, where we should get player gender, instead of modified by display gender

* fix merge

* Add virtual methods for Unit class

(cherry picked from commit b47bb59e2a3e42aff3793517ef94f51678b54905)
2021-12-13 00:42:20 +01:00
ForesterDev dd4da6ce5b Core/Logging: Split logs for unknown and zero triggered spells (#23180)
* Core/Conditions: implement CONDITION_GAMEMASTER

* Split logs for unknown and zero triggered spells

* Update SpellAuraEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellAuraEffects.cpp

* Update SpellEffects.cpp

* Update SpellEffects.cpp

(cherry picked from commit 1f853480ee07d22fdbe9782d600423bbd4ef4abb)
2021-12-10 21:41:50 +01:00
ForesterDev a2c0f6d321 Scripts/Commands: add some missing checks for .guild create command (#23201)
* Core/Conditions: implement CONDITION_GAMEMASTER

* Scripts/Commands: add some missing checks for .guild create command

(cherry picked from commit ae8750716f63ddc41f21bb38ceafe949d7260f0e)
2021-12-02 00:39:20 +01:00
ForesterDev edd911b14d Core/Social: Separated checks for friend and ignored limits (#23181)
(cherry picked from commit 2a6eef76e24bcc266050237df0bf296e4cce4bae)
2021-11-30 20:58:49 +01:00
ForesterDev b26c2f5c13 Core/Conditions: implement CONDITION_GAMEMASTER (#23108)
(cherry picked from commit 262ddaf819d3b2e759bb4690149c0c28a4022d5f)
2021-11-24 22:56:14 +01:00
ForesterDev e58d737a93 Core/Commands: fix .appear command provide wrong undermap position (#22624)
(cherry picked from commit 1e99f98327189c00e9e5e552d332120f12d38f03)
2021-11-14 20:52:50 +01:00
ForesterDev 4e66353854 Core/Commands: Fix quest remove error message (#22623)
(cherry picked from commit 82a1448705257db0b3edcffdc9a65008224bc371)
2021-11-14 20:52:18 +01:00
ForesterDev 01d098830a DB/Account: update account_access table (#24788)
* DB/Account: update account_access table:

- rename fields id -> AccountID, gmlevel -> SecurityLevel
- add Comment field
- rename command .acc set gmlevel to .acc set seclevel

* Update auth database

* Fix primary key

* Temporary restore old command account set gmlevel with same handler as account set seclevel

Use Optional  for realmID - if not set, use -1 (for all realms)

* Rename 2020_XX_XX_00_auth.sql to 2020_06_20_00_auth.sql

* Update auth_database.sql

* Rename 2020_XX_XX_00_world.sql to 2020_06_20_06_world.sql

Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit 8e0365d8a6ca5628ad17e6684743d9ab2138c068)
2020-06-22 11:03:31 +02:00