Commit Graph

23005 Commits

Author SHA1 Message Date
offl
62594c62f6 Scripts/Misc: Let core take care of Feign Death related flags 2021-03-12 18:06:10 +02:00
offl
d0b67aecb6 Scripts/Spells: Feign Death & 'prevent emotes flag' spell scripts (#26198)
Closes #25842 Ref #25764
2021-03-11 20:20:34 +02:00
offl
5a22cd868a Scripts/The Eye: Update instance script (#26190) 2021-03-11 20:19:23 +02:00
offl
10304a8875 Core/Spells: Apply UNIT_FLAG_IMMUNE after applying SPELL_AURA_DAMAGE_IMMUNITY (#26187) 2021-03-11 20:16:36 +02:00
offl
d6c8359224 DB/Spells: Sayge's Carnie Buff & Buffeting Winds of Susurrus
Ref #24663
2021-03-11 18:26:23 +02:00
Shauren
a34519bded Core/Units: Renamed unknown unit flag (UNIT_FLAG_UNK_29 -> UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXT) 2021-03-02 23:11:49 +01:00
Keader
06c1f728ba Script/Ulduar: Fixed conflict with Random Aggro Periodic spell (#26184) 2021-02-28 17:22:29 -03:00
Jakub Cieplinski
97e41645d3 Revive all command (#26127)
* First version of command handler

* Done HandleReviveAllCommand

* Moved command to group subcommonads

* removed empty row

* nullptr check for player target
2021-02-27 14:04:07 +01:00
Shauren
fd54f19d41 Core/SAI: Reserve master branch SAI action id 143 2021-02-27 11:46:40 +01:00
Kargatum
b0aaccb908 Core/ThreadManager: delete double include "TemporarySummon.h" (#26163) 2021-02-25 17:46:54 +01:00
robinsch
60680283db Core/LFG: Fixed incorrect role check timer unit (was milliseconds instead of seconds) (#26145) 2021-02-24 21:20:47 +01:00
jackpoz
7635f3f948 Scripts/Ulduar: Apply renames of #25529
Apply renames of #25529 to review that PR easier
2021-02-23 19:36:33 +01:00
offl
cdb7904182 DB/Instance/Gruul's Lair: Overhaul 2021-02-22 17:20:03 +02:00
Gildor
6e1b9d775c Core/Spells: Warlock Death Coil shouldn't be able to crit (#26118) 2021-02-21 22:23:33 +01:00
Giacomo Pozzoni
f96aab2186 Core/Maps: Use a fixed offset instead of full collision height when retrieving floor Z (#26092)
Use a fixed offset 0.5f instead of full collision height when retrieving floor Z as a full collision height ended up on the floor above a few times. It makes more sense to cast the ray just a bit higher up than using a full collision height (which by default is 2.0f)
2021-02-21 17:29:09 +01:00
Metalaka
69916138bd Core/Unit: Fix glancing blow calculation (#26120)
* Fix glancing blow calculation

* Comment readability improvement

Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com>

* Update src/server/game/Entities/Unit/Unit.cpp

Co-authored-by: Metalaka <Metalaka@users.noreply.github.com>

* Tabs to spaces

Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2021-02-21 17:28:47 +01:00
jackpoz
8014fa1a2f Revert "Core/Unit: Improve Glancing Blow calculation (#26100)"
This reverts commit c3165dce31.
2021-02-20 15:21:38 +01:00
Metalaka
c3165dce31 Core/Unit: Improve Glancing Blow calculation (#26100)
* Core/Unit: Improve Glancing Blow calculation

* Fix minimum reduction of Glancing Blow

* Fix comment

* Fix glancing minimum damage reduction
2021-02-19 18:13:10 +01:00
offl
6ad76dd7c0 DB/Instance/The Eye: Overhaul part 2 2021-02-19 00:40:50 +02:00
Gildor
ca253e4124 Scripts/Events: Fix achievement in Love is in the air: "Lonely?" (#26083)
* Scripts/Events: Fix achievement in Love is in the air: "Lonely?"

* apply @keader feedback ;)

* apply @jackpoz feedback ;)

* @jackpoz feedback
2021-02-18 19:39:03 +01:00
offl
2f9e38612f DB/Instance/The Eye: Overhaul part 1 2021-02-16 00:16:38 +02:00
Engilas
f6e52f6b3d Core/SmartAI: AI change on charmed (#26065)
* Fix AI refresh on charmed

* Remove unnecessary refresh

* Check SMART_EVENT_FLAG_WHILE_CHARMED flag
2021-02-14 14:38:06 +01:00
Shauren
895dbc06dc Core/SAI: Reserve additional param for SMART_ACTION_SUMMON_CREATURE 2021-02-10 21:19:56 +01:00
Gildor
0675be4bc3 Scripts/UtgardePinnacle: Svala Sorrowgrave Ritual improvements (#25997)
* Scripts/UtgardePinnacle: Svala Sorrowgrave Ritual improvements

* remove unneded fall
thx @offl

* apply @Ovahlord feedback

* prevent svala fall (visual) when ritual start after wipe

* svala should be disarmed before teleport when ritual start

* apply @Ovahlord feedback
* Use DoCastSelf
* Remove unneded AttackStart when finish ritual
* Use SetDisableGravity properly
2021-02-09 20:23:41 +01:00
Gildor
770a4499df Core/Spells: Fix Seed of Corruption (Warlock) target selection (#26019)
* Core/Spells: Fix Seed of Corruption (Warlock) target selection

* unneeded things
2021-02-06 19:17:54 +01:00
jackpoz
b84b925063 Core/Unit: Fix crash when exiting a vehicle
Ref #25649
2021-02-06 11:36:56 +01:00
jackpoz
4cc1f85067 Core/Unit: Set stand state on damage only to players 2021-02-06 11:20:32 +01:00
Shauren
88ffc2596d Core/SAI: Reserve SmartScriptType for master branch 2021-02-05 19:19:13 +01:00
offl
3cb70ee62a Core/Scripts: Move some speed values & UNIT_FLAG_NOT_SELECTABLE to DB 2021-02-04 15:11:22 +02:00
offl
e5518b53fa DB/GameObject: Matrix Punchograph
Closes #25881
2021-02-01 16:15:44 +02:00
offl
a9c83d5566 DB/Creature: Remove UNIT_FLAG_PACIFIED
Ref #25764
2021-01-31 18:39:25 +02:00
Matan Shukry
dd27485a64 Core/Player: remaining XP logging overflow correction (#25934)
(cherry picked from commit 6dbaba7669)

# Conflicts:
#	src/server/game/Handlers/CharacterHandler.cpp
#	src/server/game/Server/WorldSession.cpp
2021-01-31 16:02:39 +01:00
jackpoz
dc21ac342e Scripts/EoE: Attempt to fix players getting stuck after dying
Attempt to fix players getting stuck after dying caused by a hack that calls SetControlled(true, UNIT_STATE_ROOT) by calling the opposite when a dead player leaves the instance, i.e. on releasing.
Close #24458
2021-01-30 20:48:18 +01:00
Giacomo Pozzoni
d5fc86af8b Core/Creature: Allow to skip Rate.Corpse.Decay.Looted when calling SetCorpseDelay() (#25989)
Add a second parameter to SetCorpseDelay() that specifies if Rate.Corpse.Decay.Looted setting should be ignored, false by default (aka don't ignore by default).
Add a second parameter to SMART_ACTION_SET_CORPSE_DELAY to specify if Rate.Corpse.Decay.Looted should be included, false by default (aka ignore by default).
2021-01-30 19:13:10 +01:00
Giacomo Pozzoni
3e6b3f88b0 Core/Warden: Send Lua checks only when ingame (#25977) 2021-01-30 18:53:59 +01:00
Matan Shukry
d2be584f99 Core/Commands: Implemented command to teleport character to npc
Closes #25870
2021-01-28 21:32:36 +01:00
offl
1ed79d7a2e Core/Scripts: Verify & migrate spell school immunities to DB
Some already are stored in DB. Looks like they all are still valid for master
2021-01-26 23:43:50 +02:00
Giacomo Pozzoni
7d6f7e4d19 Core/SAI: Add new action SMART_ACTION_SET_HEALTH_PCT (#25932)
* Core/SAI: Add new action SMART_ACTION_SET_HEALTH_PCT

Add new action SMART_ACTION_SET_HEALTH_PCT (142) with one single parameter "percent" to set the Unit health.
Close #25317

* Do not allow 0%
2021-01-25 21:27:57 +01:00
Meji
28353e920b Core/Spells: Fixed spell effect 43 (SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER) (#25945) 2021-01-25 18:40:34 +01:00
Giacomo Pozzoni
661f554b9e Core/Misc: Fix static analysis issues (#25924)
* Core/Misc: Fix static analysis issues

* Fix infinite loop in ".debug send opcode"
Fix using uninitialized memory in ".debug send opcode"
2021-01-24 16:04:47 +01:00
illfated
23cd884f3b DB/Item: Remove Plans: Goblin Rocket Boots (7192) from loot & exclude from being sold by AHbot
Closes #25930
2021-01-24 15:10:04 +02:00
jackpoz
d0231c5a8f Scripts/Commands: Improve ".debug objectcount"
Include the number of SetActive objects in ".debug objectcount" command
2021-01-23 15:54:25 +01:00
Giacomo Pozzoni
a22bc236eb Core/Creature: Add new db field InteractionPauseTimer (#25880)
* Core/Creature: Add new db field InteractionPauseTimer

Add new db field InteractionPauseTimer to allow to define different interaction pause timers for each creature (the previous system was a global setting in worldserver.conf Creature.MovingStopTimeForPlayer)

* Set all columns in creature_template_movement as optional (can be NULL, default NULL). Fill only the columns that should override the default C++ value

* Use the InteractionPauseTimer value throughout the code instead of Creature.MovingStopTimeForPlayer

* Handle InteractionPauseTimer set to 0 as "don't stop at all"

* Implement InteractionPauseTimer in creature_movement_override

creature_movement_override allows NULL values, in which case the values from creature_template_movement will be used for those columns that are NULL, falling back to default C++ values if creature_template_movement has NULL values too (or no rows for the creature)

* Read default InteractionPauseTimer from worldserver.conf

* Rename 2021_99_99_99_world.sql to 2021_01_22_00_world.sql
2021-01-22 19:48:50 +01:00
Jan Van Buggenhout
a832a1fe90 Core/Misc: Fix typo in SendAuthWaitQue method name (#25887) 2021-01-18 17:35:35 +01:00
Jan Van Buggenhout
ec689e7908 Core/Misc: Update WorldSocket::OnRead to WorldSocket::ReadDataHandler in comments and logging (#25885) 2021-01-18 17:27:36 +01:00
Jan Van Buggenhout
c7e03e4cef Core/PacketIO: Change size of SMSG_AUTH_CHALLENGE WorldPacket from 37 to 40 in WorldSocket::HandleSendAuthSession (#25886) 2021-01-18 17:23:41 +01:00
Matan Shukry
cdfa85957e Core/logs: added xp info on login & logout (#25867)
* Core/logs: added xp info on login & logout

* - Moved getters to header
- Changed %s to %u

(cherry picked from commit bb24c6a11b)

# Conflicts:
#	src/server/game/Entities/Player/Player.h
#	src/server/game/Handlers/CharacterHandler.cpp
#	src/server/game/Server/WorldSession.cpp
2021-01-17 17:45:00 +01:00
Shauren
ee330be5c8 Build fix
(cherry picked from commit 28d470c50e)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
2021-01-17 17:29:59 +01:00
jackpoz
1939736060 Core/Spells: Defined new spell attributes
(cherry picked from commit b2ddf547ff)

# Conflicts:
#	src/server/game/Miscellaneous/SharedDefines.h
2021-01-17 17:29:54 +01:00
Keader
740a59d1cd Scripts/Priest: Fixed Lightwell getting removed in first damage
* Spell should drop charge, only when damage > 30% of total health.
2021-01-17 10:22:02 -03:00