Commit Graph

23713 Commits

Author SHA1 Message Date
Shauren
2a587e5ac4 Core/Misc: Remove unwanted position converstions from a single float 2023-06-04 18:27:05 +02:00
Shauren
fb699dc641 Core/Loot: Fixed loot roll exploit
Closes #29042
2023-05-30 21:28:02 +02:00
robinsch
d5ef68bc9b Core/StatSystem: Fixed missing calls to set negative attack power mods (#28883)
* Core/StatSystem: Fixed missing calls to set negative attack power mods

(cherry picked from commit 5ab14c14e70e516278b94a9e61e8475ffec86774)

* Added missing calls in Player::InitStatsForLevel

* Fixed typo

* Fixed typo

* Fixed typo
2023-05-28 17:12:34 +02:00
Shauren
47b1de526e Core/Units: Corrected AURA_INTERRUPT_FLAG_NOT_SEATED implementation to only interrupt when actually standing (flag not renamed but its correct name is SpellAuraInterruptFlags::Standing) 2023-05-13 18:35:54 +02:00
Shauren
dd10ac27fe Core/Auras: Don't force sitting state from non-standing state when applying auras with SpellAuraInterruptFlags::Standing
Closes #28973
2023-05-12 22:26:16 +02:00
Shauren
2f4c412f4c Core/Units: Don't make force stand state on periodic damage taken
Closes #28950
2023-05-11 22:51:43 +02:00
Shauren
3993c45a04 Core/GameObjects: Fixed traps not being able to trigger for friendly targets
Closes #27210
Closes #28945
2023-05-08 19:25:44 +02:00
Shauren
83d70425c8 Core/Objects: Removed default argument value from WorldObject::IsNeverVisible 2023-05-07 20:04:26 +02:00
Shauren
aa96aa4783 Core/Misc: Cleanup Expression is converted to bool and can be replaced with 'boolean constant' 2023-05-07 18:52:34 +02:00
Shauren
7e0b28c70c Scripts/Undercity: Fixed NPC_HIGHBORNE_BUNNY being told to MoveJump to { target->GetPositionX(), 0, 0 } with speedXY = target->GetPositionY() and speedZ = target->GetPositionZ() 2023-05-07 18:35:53 +02:00
Gildor
046c6b6a3a Core/Cinematic: Fix crash CinematicMgr::UpdateCinematicLocation (#28953)
* Core/Cinematic: Fix crash CinematicMgr::UpdateCinematicLocation

* typo fix, thx jackpoz
2023-05-03 17:47:34 +02:00
Gildor
431a59eae1 Scripts/Trial Of The Crusader: Fix application of spell Surge of Adrenaline (Icehowl) (#28933)
* Scripts/Trial Of The Crusader: Fix application of spell Surge of Adrenaline (Icehowl)
2023-04-25 08:35:38 +02:00
Gosha
71b7cc6361 Change Map::Visit to not call EnsureGridLoaded if cell.NoCreate is true (#28884)
Remove Map::setGridObjectDataLoaded/Map::isGridObjectDataLoaded helpers, we have NGridType object to use methods directly
2023-04-13 11:52:34 +02:00
Shauren
9ad420e531 Core/Misc: Fixed IpLocation crashes on invalid ip input
(cherry picked from commit fff797aff5)
2023-04-13 00:20:04 +02:00
Adam B
63790adbfe Add code that changes the faction of Tortheldrin in Dire Maul (#28581)
* Add code that changes the faction of Tortheldrin

Per WoW Classic, Tortheldrin becomes hostile after Immolthar is killed. This code implements an event that does this.

* Bug fix.

Fixed a bug where the server would crash if the bosses were already dead and the player zoned in.

* Recommited with the correct path.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed wrong file.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Made changes requested by jackpoz.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Corrected a syntax error after testing.
- Tested in game and confirmed all is working.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed whitespace changes.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Changed the script to use OnUnitDeath rather than an event.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed the IMMO_DEAD_CHECK event.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed redundant comma.

Signed-off-by: Adam Bajac <adam@asblab.work>

---------

Signed-off-by: Adam Bajac <adam@asblab.work>
Co-authored-by: Adam B <adam@avalonglobal.com>
2023-04-11 23:11:48 +02:00
lee
60b75e3b6e Scripts/Misc:fix npc_professions locale text (#27894)
* fix npc_professions locale text

fix npc_professions locale text load from db

* fix dup sql

fix dup sql

* add condition and gossip option

add condition and gossip option for money cost depends on player level

* add missing update statements

* Rename 9999_99_99_world.sql to 2023_03_24_00_world.sql

---------

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2023-03-24 10:52:44 +01:00
Meji
4672200adc Warning fix 2023-03-23 21:28:23 +01:00
Meji
19ea4c416a Core/Spells: Allow implicit targeting of serverside WorldObjects (#28827)
(cherry picked from commit 5d5ca30b23)
2023-03-23 20:22:29 +01:00
robinsch
c8f7dd13b8 Core/Groups: Implement MSG_RAID_READY_CHECK_FINISHED response (#28811) 2023-03-12 17:37:20 +01:00
Gildor
3dda65c53a Core/Players: Remove player from group on faction change if two side interaction group is not allowed. (#28835) 2023-03-11 19:17:00 +01:00
robinsch
13fa60ab86 Core/Item: Fixed incorrect damage mod for Heirloom 2H weapons (#28836) 2023-03-11 14:07:03 +01:00
Anton Popovichenko
9658d15b0c Core/Mail: Reorder mail attachment checks to be able to report nonempty bag error to client. (#28844) 2023-03-11 13:59:10 +01:00
M'Dic
48f9a807f3 Update (core\log): Log correction (#28802)
Loading AreaTrigger definitions to Loading Area Trigger Teleports definitions
and also Re-Loading AreaTrigger teleport definitions to Re-Loading Area Trigger Teleport definitions
2023-03-10 10:26:25 +01:00
Shauren
92b7c98c01 Core/Spells: Prevent rerolling gathering skillups until success when mining or gathering herbs 2023-02-25 21:12:28 +01:00
Gildor
70b483aae4 Core/Arena: Correctly update the stats of the members of each team when the week ends and the arena points are distributed. (#28812) 2023-02-25 14:19:58 +01:00
Mikhail Redko
c6cd272505 Core/Misc: Sending player's own auras before all visible objects. (#28450)
* Core/Misc: Sending player's own auras before all visible objects.
This should finally solve the problem of naked characters.
Closes #15159

Many thanks to xvwyh for explaining cause of this bug

* Core/Misc: Force send update auras packet to player when he added to map
2023-02-25 14:18:23 +01:00
Aokromes
e11613eeb5 Update worldserver.conf.dist 2023-02-16 10:44:41 +01:00
Shauren
d23c839998 Core/Auras: Remove channeled auras when caster and target are not on the same map
Closes #28777
Closes #28792
2023-02-09 19:04:23 +01:00
Shauren
70e985c7f7 Scripts/Events: Fixed infinite loop with auras 71507 and 71508 casting each other when unit is removed from map 2023-02-09 10:26:42 +01:00
Shauren
6e4329b110 DB: Convert databases to utf8mb4 2023-02-05 14:58:07 +01:00
Gildor
aeb4d18e20 Core/Battlegrounds: Prevent end Arena when a dead player logout (#28766) 2023-01-20 17:33:21 +01:00
Shauren
835e291831 Core/Auras: Fully remove auras that had all of their effect suppressed with immunity 2023-01-19 18:16:02 +01:00
Shauren
593721ff1f Core/Auras: Fixed possible iterator invalidation crashes caused by calling UpdateTargetMap inside loops iterating m_appliedAuras
Closes #28609
2023-01-19 14:12:08 +01:00
Shauren
fe7fef7535 Core/Guilds: Fixed sending random properties for guild bank items
Closes #28751
2023-01-17 14:05:35 +01:00
Ovahlord
128339730c Core/Creatures: improved error logging messages added in 6f835c233f for creature_template_addon to avoid confusion 2023-01-10 15:46:51 +01:00
Ovahlord
6f835c233f Core/Creatures: Split creature_addon and creature_template_addon's byte columns into seperate ones (#28562)
* Instead of dumping raw byte values into these fields, we now only allow setting values which should be accessible to database devs. The remaining byte values should be handled by core internals and spells (pet talents and shapeshifting for example)
2023-01-09 19:54:56 +01:00
Shauren
9d8fc90371 Scripts/Icecrown Citadel: Added missing empty check before SelectRandomContainerElement 2023-01-06 01:46:57 +01:00
Mikhail Redko
dc221604d9 Core/Scripts: Implemented Zort's Protective Elixir (#28372)
* Core/Scripts: Implemented Zort's Protective Elixir

* Rename XXXX_XX_XX_XX_world.sql to 2022_12_23_00_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2022-12-23 15:08:58 +01:00
Badgersson
d91c4526e1 Core/Spells: resurrection after raise ally (#28582)
(fix #26296)player->IsResurrectRequested() now is called with spell_dk_raise_ally_Aura removing
2022-12-23 14:26:28 +01:00
robinsch
036c72327f Core/Guild: Fixed possible guild exploit (#28577)
* Core/Guild: Fixed possible guild exploit

* Core/Guild: Do not process HandleGuildDeclineOpcode if player is in guild
2022-12-05 10:16:38 +01:00
Badgersson
297541e9c9 Core/Player: Vertical "Say" distance (#28544)
* Core/Player: chat messages use 3d distance Fix #26593

* Core/Player: chat messages use 3d distance
new arg in SendMessageToSetInRange
Fix #26593
2022-12-04 16:08:10 +01:00
Ovahlord
4a19892696 Core/Units: ensure that we use valid iterators when providing spell Ids in Unit::RemoveAppliedAuras and Unit::RemoveOwnedAuras 2022-11-23 21:14:45 +01:00
Shauren
4ee64a232a Core/GameObjects: Use serverOnly property of GameObjectTemplate for all types that have it, not just spell focus 2022-11-15 11:57:19 +01:00
Killyana
b1be7437c5 DB/Quest: Villains of Darrowshire
Closes #4385
2022-11-05 19:00:49 +01:00
Ovah
f2fcd6746c Scripts/Halls of Lightning: reworked General Bjarngrim Encounter (#28457)
* handle missing visuals
* reworked all AI scripts
* handle missing mechanic of Arc Weld
* reworked the whole waypoint and tempoary electrical charge handling
* moved Stormforged Lieutenants to their own spawn group to handle their spawning/despawning via boss
* moved the Tempoary Electrical Charge mechanic from spell_linked_spell to spell script instead
* replaced hacky virtual items for Bjarngrim's stances with sniffed ones
2022-11-04 13:08:34 +01:00
Giacomo Pozzoni
b69870630d Revert "MMAP: Build ADT floor just like WMO floor below liquid (#27503)" (#28392)
This reverts commit 8a779268b6.
2022-11-02 14:53:05 +01:00
Malcrom
8c64457edc Scripts/Quest: Refactor Last Rites (#28328) 2022-10-14 19:54:35 +02:00
Malcrom
f7ebdd3631 Scripts/Quest: Improved script for Abduction (#28306) 2022-10-14 14:33:35 +02:00
Malcrom
f98e2bcab4 Scripts/Quests: Help Those That Cannot Help Themselves (#28304) 2022-10-14 14:09:48 +02:00
Shauren
966e38ab75 Core/Misc: Fixed worldserver shutdown with --update-databases-only
(cherry picked from commit edc922d532)
2022-10-13 12:54:40 +02:00