Commit Graph
28009 Commits
Author SHA1 Message Date
Killyana a09d5d4854 Creature/AI: Reset CoolDowns on evade
Closes  #24008

(cherry picked from commit cb11ad97fb9eb6202b54913b0f522eda4935d533)
2021-12-19 15:46:40 +01:00
Michael 72e61625bc additional output for additem command (#24006)
* additional output for additem command

when removing items with additem:

if the user provides an amount too large of a negative amount, the command will now output the amount of items that could not be destroyed.

* renamed sql file to hopefully avoid conflicts

* added clarification to failure string

* changed unneeded else if condition to else

* code style; braces

* Update and rename 9999_99_99_99_world.sql to 2019_12_28_01_world.sql

(cherry picked from commit 6b19f4a0ab1f77ea969a080a6eea0379baf9f8df)
2021-12-19 15:46:20 +01:00
jackpoz 2327ff4d6d Core/Movement: Fix fleeing speed to 66% run speed
Fix AssistanceMovementGenerator using 100% MOVE_RUN speed instead of 66% . Please note that the fleeing mechanic still has some open issues that this single commit doesn't fix

(cherry picked from commit 862d47394b8c879f42902f03ecd112b65ff631c2)
2021-12-19 15:34:20 +01:00
Giacomo Pozzoni b40cadd5a1 Core/Movement: Fix stunned falling units freezing the client (#24000)
(cherry picked from commit 8f94c9ef6b843f69d014b7e3a4b3b30e5d1515e4)
2021-12-19 15:33:57 +01:00
Keader b9def15aa7 Scritps/ICC: Fixed resistance calculation for Mutated Transformation (Professor Putricide) (#23858)
More Info in: #23837

(cherry picked from commit 9f7b464a6aa5b64bf5ec5c0f586853fbc71029c6)
2021-12-19 15:33:41 +01:00
Giacomo Pozzoni 96ec8477f0 Core/Creatures: Fix spell_school_immune_mask being applied against positive spells too (#23999)
(cherry picked from commit 18a4cbee5eb10cf0502ffae9c89ad468a2c58012)
2021-12-19 15:31:34 +01:00
Giacomo Pozzoni fda1630f74 Core/Spells: Fix Spellsteal stealing Silence buff of Arcane Torrent (#23992)
(cherry picked from commit 7920347f439b1c17805182a4f22d3b3b9f521a29)
2021-12-19 15:30:59 +01:00
Giacomo Pozzoni 1635a34228 Core/Movement: Add more LOS checks (#23991)
Add more LOS checks to ensure Units don't cross trees/walls when fleeing/moving

(cherry picked from commit 13ad8b66d9f4abcb55b4369a24d89d8cde3ca361)
2021-12-19 15:30:13 +01:00
Meji c4fee8c5cf Core/Spells: Implemented spell effect 204 (SPELL_EFFECT_CHANGE_BATTLEPET_QUALITY) (#27425) 2021-12-19 13:27:27 +01:00
jackpoz e6ac3316b7 Core/Map: Load the grid of TempSummons owned by Players
Ensure to load the grid of TempSummons owned by Players when the relocate to another cell

(cherry picked from commit afbc47891965f9c31c4b31c66931a2dbc9846f93)
2021-12-19 13:14:33 +01:00
Shauren e30683fda4 Scripts: Add missing killer nullptr checks in JustDied hooks
(cherry picked from commit 175eba74aee742b8aa97b940983a0ddbd7b4bdf7)
2021-12-19 13:12:42 +01:00
Shauren e539de68e1 Core/Creatures: Fixed crash when guards get killed by periodic auras whose caster is offline or despawned
(cherry picked from commit 046e98bc5da89c31af9f68d18d78d8f8e9161f6a)
2021-12-19 13:12:30 +01:00
jackpoz 7fb3b89d1d Scripts/Misc:Code cleanup
(cherry picked from commit 68fa3091a2d5497041e2fbc49c6caa4cb11f73d4)
2021-12-19 13:12:05 +01:00
Killyana 22e088351d Creature/Script: Fire Bomb
Closes #23977

(cherry picked from commit c5c46fed6a5ba894827173d489361b9892560d5b)
2021-12-19 13:11:06 +01:00
Killyana 8c6216eaab Creature/Script: Toravon Frozen Orb Stalker
(cherry picked from commit 9bed0aa8d8fc5f9526fc756e3961ed25f703de79)
2021-12-19 13:10:28 +01:00
Killyana ff30b0751e Spell: Move Crystal Spike aura to the cpp
(cherry picked from commit 26faca51cd42fdc0778f4ed5a7efd2b44654f726)
2021-12-19 13:09:42 +01:00
Killyana a8cbaa33ac Spell: Move Shadow Trap aura to the cpp
(cherry picked from commit 462b63957aa821b388a88a741c9eb9bb59491b4a)
2021-12-19 13:04:08 +01:00
Eridium c96157cb95 Boss/Script: Fix Mechano-Lord Capacitus's Nether Charges (#23976)
* Boss/Script: Fix Mechano-Lord Capacitus's Nether Charges

Closes #23973

* Update boss_mechano_lord_capacitus.cpp

* Update boss_mechano_lord_capacitus.cpp

* Update boss_mechano_lord_capacitus.cpp

* Rename 2019_12_99_99_world.sql to 2019_12_19_00_world.sql

(cherry picked from commit efcbfa5c24b32fe7bc7015a953f0926e375a6a6b)
2021-12-19 12:34:32 +01:00
Killyana 41b7b39e3c Spell: Move Column of Frost & Mana Void to the cpp
(cherry picked from commit 74f92d776b2c85c8795bae1a216abd8e7ea204fa)
2021-12-19 12:33:59 +01:00
Killyana eb36b2f2f7 Spell/Script: Move the spell "Flame Sphere Spawn Effect" from the DB to the cpp
(cherry picked from commit 4d89da56c18542f78f7ca29d57a06f08ffa3cef7)
2021-12-19 12:25:17 +01:00
aquadeus 07015cc052 Scripts/Spells: Fix paladin talent Eye for an Eye (#27426) 2021-12-19 11:53:17 +01:00
aquadeus 5750466259 Scripts/Spells: Fixed priest talent Masochism (#27420) 2021-12-19 11:41:33 +01:00
Treeston 12f9423efa Common/Encoding: fix Base32 alphabet (oops)
(cherry picked from commit e457b77b4b8d8fcb8dcb916170e3b40273f0b966)
2021-12-19 01:46:30 +01:00
Giacomo Pozzoni 64eb65cd45 Core/Creature: Remove empty spell ids from CreatureAddon.auras vector
Close #23969

(cherry picked from commit f20265feafbf28f722338649740bd11a9e48f2e7)
2021-12-19 01:46:07 +01:00
jackpoz 73e7719dbf Core/Creature: Log an error for Creatures spawned with temporary auras
The errors still need to be addressed.
Close #23225

(cherry picked from commit 54f94567649c78d146f4087cc874e4d0cbcff28b)
2021-12-19 01:44:53 +01:00
Keader f358ac39cc Build fix
(cherry picked from commit ecd4ffc1ceac6b1d6e9f86f192673ce95f94aaae)
2021-12-19 01:42:27 +01:00
Keader 8ed57e95d5 Scripts/Azjol-Nerub: Fixed Gatewatcher pets evading when kill a player
Making Aokromes happy

(cherry picked from commit 58b5ea9f955007bcd43a4589dc757ce2eedd6bbd)
2021-12-19 01:42:18 +01:00
Killyana 16ddcdfd0a DB/Quest: Take Down Tethyr!
Closes #22407

(cherry picked from commit c22b1e6cb46ff76729f44eb846043e1614abc9f9)
2021-12-19 01:42:16 +01:00
Killyana 89edc84c23 Core/Log: Gameobjects may have faction template id = 0
Ref https://github.com/TrinityCore/TrinityCore/pull/22922

(cherry picked from commit 8b03fe95061f870efbe5352530c25a0175c4d8ee)
2021-12-19 01:36:54 +01:00
Killyana 884eeaed8d DB/Spawns: Rampart of skulls
Closes #23966

(cherry picked from commit 366ec081607a04de0195672c87711ce0dcc38dfd)
2021-12-19 01:34:59 +01:00
Gildor 5004a8a4ec Scripts/VioletHold: Minor improvements (#23961)
* Scripts/VioletHold: Minor improvements
* Now we can teleport inside with gossip if event is in progress
* Improve HavePlayers() check logic

* Remove a pointless comment
suggested by shauren

* Move CheckWipe function to execute every 3 seconds instead every map update
suggested by Riztazz

* I supose Riztazz forgot add this to repeat every 3 seconds

(cherry picked from commit f661bc6c39596666da692297ef3fac13264f5840)
2021-12-19 01:27:48 +01:00
Killyana 5317d98e33 Tabs
(cherry picked from commit d8e12d826c300704d027970a93c5943798be8186)
2021-12-19 01:09:44 +01:00
Treeston a8e4add6cc Core/Spell: Reset threat to zero when the hunter use Feign Death
Closes #23874

(cherry picked from commit d4b00df78191bb0e6b79bc99e6ca7a2bf8091eba)
2021-12-19 01:09:30 +01:00
Killyana cf95274ace Quest: Weakness to Lightning
Closes #23916

(cherry picked from commit 6db4bf66715a775ab85c7e82e9b9733c891e450e)
2021-12-19 01:09:15 +01:00
Ovah 04ed6e292c Scripts/ScarletEnclave: reworked Eye of Acherus script (#23953)
* updated script model to new standard
* corrected spell usage and timers based on sniff data
* removed hacks

(cherry picked from commit 60763fc5e2d7bb32150d8e03bfd0fb3e7cb890f3)
2021-12-19 01:05:59 +01:00
ccrs d967d03151 Core/AI: add another helper for "ScriptedAI::ForceCombatStop"
(cherry picked from commit 3842ab2781e4ca518d98d4f50566e42eeced18bf)
2021-12-19 01:05:59 +01:00
Giacomo Pozzoni 9bede687ce Core/GameObjects: Skip LoS checks for traps (#23936)
* Core/GameObjects: Skip LoS checks for traps

* Core/GameObjects: Fix spells cast by traps missing always

* Scripts/Spells: Fix WSG heal buff not healing

The WSG green heal buff is now cast by a GameObject so the spell target should be used to calculate the healing, not the GameObject.

(cherry picked from commit 909941e1b44250b0fa646d363af817f40ca48355)
2021-12-19 01:05:54 +01:00
Ovah e42aae1895 Fixed pets repositioning themselves after every cast (#23923)
(cherry picked from commit 4ddf7f59761df525e6ab5ef99175258a1d86101d)
2021-12-19 00:37:22 +01:00
Shauren b93bf95f2e Core/Random: Refactor random number generation to use std::uniform_*_distribution to restrict result range instead of doing that ourselves
* Seed SFMTRand with more values for its state

(cherry picked from commit 73bc3d8ea49a4793b14976e86010a36f19c1d18b)
2021-12-19 00:13:11 +01:00
daMaex 08b40733a5 Dep/SFMT: updated to newest upstream version from https://github.com/MersenneTwister-Lab/SFMT
* only needed files added
* used CMake and SFMTRand from https://github.com/TrinityCore/TrinityCore/pull/23240 (Thank you Artox)

(cherry picked from commit 4e0279b0e48c9992842010b9f3f132e54a460128)
2021-12-19 00:12:41 +01:00
Trond B. Krokli 3e835a77bb Core/Spells: add spell fix to Trained Rock Falcon (#23896)
fixed by sirikfoll

(cherry picked from commit 42f1861f3023af2eff66dc64e78164f3c480337e)
2021-12-18 23:43:49 +01:00
Shauren 22987b705b Core/PacketIO: Restrict CMSG_STANDSTATECHANGE to only allow the same stand states that client can send by itself
(cherry picked from commit 267bdde3232566e210659df47dc7580e676e9ee5)
2021-12-18 23:39:11 +01:00
ccrs 5d1281edda Scripts/PoS: a7a96d4 followup
cause edge cases may exist
ty Aokromes

(cherry picked from commit a58ed271c963643f19ec9ebff0dbadd6f46e4eb8)
2021-12-18 23:36:44 +01:00
ccrs 6443116d5b Scripts/ScarletMonastery: instance script cleanup (#23889)
Adapt InstanceScript into newer structure and style
Adapt existing boss scripts into newer structure and style
Improve existing boss related definitions

Should make each boss more functionally reliable, but nothing new has been added

(cherry picked from commit 06c6b30ed484850228c57313dc2c024c38e2055f)
2021-12-18 23:36:17 +01:00
jackpoz 0fb1bf8439 Core/Misc: Enable MaxCoreStuckTime setting by default
Enable MaxCoreStuckTime setting by default to force worldserver to exit in case of infinite loops.
Note that this will not affect existing setups with the setting MaxCoreStuckTime set to 0 in the local worldserver.conf .

(cherry picked from commit 00703ee238729a8d5b3d17edf8dc16d6c6c6b601)
2021-12-18 23:24:24 +01:00
ccrs bb1a4e884a Scripts/PoS: a7a96d4 followup
we cant despawn all summons since vehicle spawn their passengers as regular summons
ty Aokromes

(cherry picked from commit fcbcb43b2b9f2d3b77192ed779a98f43d7e1c486)
2021-12-18 23:23:08 +01:00
ccrs b7346bac48 Scripts/PoS: a7a96d4 followup
(cherry picked from commit 40116f10259585df28c6bb950afadb77834c1ceb)
2021-12-18 23:22:54 +01:00
ccrs 7594ae72d7 Scripts/PoS: little implementation cleanup in boss_krickandick with, you guessed it, movement related corrections
also, never forgetti  -->
                                     ¨¨Ç*^¿?_:;_^!"·Ç!Ñ·$%/(/)/()(=)(=]]{
Unit::StopMoving() is evil, and so is MotionMaster::Clear()

the first can really mess up existing movement generators
the second can interrupt "controlled" movements... can do it literally mid-air

(cherry picked from commit a7a96d427193163f8b7e3e2404d80b73fb6e63df)
2021-12-18 23:22:38 +01:00
ccrs a73e6a7438 Scripts/PoS: move boss_krickandick into new script definition
(cherry picked from commit d27fd717c14e096d7120ac967d295d93816054c6)
2021-12-18 23:22:08 +01:00
ccrs 1add1c31d8 Core/Movement: prevent any Initialize queue till AddToWorld is signaled
(cherry picked from commit c9c6871659bf2be52b4656bc641df5211fcb928f)
2021-12-18 23:18:26 +01:00