Commit Graph

2345 Commits

Author SHA1 Message Date
Meji 81ea6f54d9 Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale (#28863) 2023-03-30 18:54:27 +02:00
Meji cc57c9dad5 Core/Creatures: Improved movement interruption while casting spells (#28845) 2023-03-24 12:27:01 +01:00
Shauren 512f5138d4 Core/Creatures: Use togglable CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS instead of equivalent flag from creature_template.type_flag 2023-03-17 23:02:47 +01:00
Shauren d26d38075c Core/Creatures: Allow disabling melee attacks for all creatures, not just the ones using SAI 2023-03-13 20:22:47 +01:00
Shauren eb93afffc0 Core/Creatures: Allow toggling creature default root state 2023-03-13 14:52:11 +01:00
Shauren 155cf58236 Core/Creatures: Allow scripts to change creature loot id (must be done before death) 2023-03-13 00:09:18 +01:00
Shauren ebf799c0f6 Core/Creatures: Allow disabling loot for creatures 2023-03-12 13:05:35 +01:00
Shauren 4300c3edd3 Core/Movement: Refactor TimedFleeingMovementGenerator to use chrono types 2023-03-11 13:35:46 +01:00
Shauren 7ea438ebdc Core/Creatures: Implemented unkillable flag (prevent health from going below 1) 2023-03-11 00:07:57 +01:00
Shauren cdc09d29bc Core/Units: Added Unit::SetFacingToPoint function 2023-03-05 15:45:57 +01:00
Shauren a8bb1739e9 Core/Spells: Refactor Spell::finish to accept SpellCastResult argument instead of just a bool indicating success 2023-02-28 00:19:31 +01:00
Shauren 982b60f39c Core/Misc: Add launchDelay argument to Unit::SendPlaySpellVisual overload accepting Unit* argument 2023-02-26 19:58:04 +01:00
Shauren cbdb255958 Partial revert of "Core/Spells: Moved SpellVisual functions from Unit to WorldObject" - client only accepts unit guids in these packets (orphan visuals not reverted)
This partially reverts commit 54f607641a.
2023-02-25 16:24:44 +01:00
Shauren 9f088c2e04 Core/Units: Pass real damage taken after level scaling calculations to DamageDone and DamageTaken script hooks 2023-02-11 16:54:46 +01:00
Shauren b842f2be55 Core/Auras: Remove channeled auras when caster and target are not on the same map
Closes #28777
Closes #28792

(cherry picked from commit d23c839998)
2023-02-09 19:06:36 +01:00
Shauren b6965b2c30 Core/Objects: Move EventProcessor update to WorldObject::Update 2023-02-05 16:24:13 +01:00
Shauren 8568b08350 Core/Auras: Fully remove auras that had all of their effect suppressed with immunity
(cherry picked from commit 835e291831)
2023-01-19 18:17:30 +01:00
Shauren a1b2b86427 Core/Auras: Fixed possible iterator invalidation crashes caused by calling UpdateTargetMap inside loops iterating m_appliedAuras
Closes #28609

(cherry picked from commit 593721ff1f)
2023-01-19 14:14:15 +01:00
Shauren 3e85598d99 Core/Objects: Call base class Update function for Unit and GameObject (currently does nothing) 2023-01-15 23:01:10 +01:00
Ovahlord d03a5b802d Core/Units: ensure that we use valid iterators when providing spell Ids in Unit::RemoveAppliedAuras and Unit::RemoveOwnedAuras
(cherry picked from commit 4a19892696)
2023-01-12 22:55:18 +01:00
Shauren 6cac60782f Core/Units: Fixed crash happening whenall tappers of a creature are logged out when it dies inside a dungeon 2023-01-12 13:29:53 +01:00
Gosha 9f4a0e8c52 Core/Units: Removed duplicate call to WorldObject::UpdatePositionData (#28731) 2023-01-11 13:53:13 +01:00
Shauren d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren d8a4668c77 Core/Misc: Add missing Containers.h include where neccessary 2023-01-06 16:44:11 +01:00
Shauren ba9bbbc9d0 Core/Misc: Fixed deprecation warnings for c++20 2023-01-01 00:26:53 +01:00
Seyden c5bd2ceda4 Core/Auras: Fixed iterator invalidation crash in Unit::CalcHealAbsorb (#28515) 2022-12-30 12:52:22 +01:00
Teleqraph dbed48becc Core/Auras: Implemented SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY (#28517)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-30 01:38:41 +01:00
Teleqraph 6515319b75 Core/Auras: Implemented SPELL_AURA_MOD_STUN_DISABLE_GRAVITY (#28511)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-30 01:16:29 +01:00
Shauren c3f385c48f Core/Phasing: Reduce differences between branches in GridNotifiers 2022-12-25 00:44:12 +01:00
Shauren e98e1283ea Core: Updated to 10.0.2 2022-12-04 15:13:20 +01:00
Shauren de7c03c838 Core/Spells: Extended mechanic mask to uint64 2022-12-04 15:07:36 +01:00
Shauren f205e50f92 Core/Creatures: Update creature transport offsets when teleporting while on transport 2022-10-31 14:57:36 +01:00
Shauren 010e6f7f49 Core/Loot: Implemented dungeon encounter personal loot
Closes #20066
2022-10-25 00:30:52 +02:00
Shauren 133334a902 Core/Loot: Implemented personal loot and tag sharing for non-boss loot 2022-10-17 23:11:46 +02:00
Gosha c1a9d7a3bc Core/PacketIO: Use ByteBuffer from UpdateData instead of copying to it after (#28347)
(cherry picked from commit 81bf8de989)
2022-10-13 12:37:18 +02:00
Shauren 5f1a4cf904 Core/Loot: Set loot dungeon encounter id before generating 2022-10-05 20:04:15 +02:00
Shauren 9b924522d0 Core/Instances: Delete InstanceSaveMgr and replace most of its uses with new InstanceLockMgr 2022-10-04 00:19:38 +02:00
Shauren 17665c929c Core/Instances: Instance lock rewrite (WIP) 2022-10-04 00:19:38 +02:00
Ovah 9f08471827 Core/Spells: fixed up block mechanics (#28286)
* Ranged attacks can now be blocked
* Implement SPELL_ATTR3_COMPLETELY_BLOCKED
* Fixed a bug which was causing blocking to block entire spell effects regardless if the attribute was present or not
* Fixed a logic mistake which was causing blocks to roll twice (once for effect negation and once on hit)
* No longer send blocked miss conditions in spell_go packets when the spell is not completely blocked to match sniff data

(cherry picked from commit b47ef3ce90)
2022-10-01 18:42:04 +02:00
Shauren ffbde7cccc Core/Auras: Fixed requireImmunityPurgesEffectAttribute logic for school immunities
Closes #28237

(cherry picked from commit a55a566602)
2022-09-29 21:45:57 +02:00
Aqua Deus 56ef6c06eb Core/Spells: Fix glyph of stars (druid) (#28258) 2022-09-19 20:07:00 +02:00
Shauren 3ef5079fee Core/Loot: Move loot rolls from Group to Loot
* Partial port of cmangos/mangos-wotlk@ffdf9a05d6
2022-09-16 16:58:03 +02:00
Shauren 9700b2a786 Core/Loot: Store method used at loot generation inside Loot object 2022-09-14 22:03:47 +02:00
Shauren e9d083a2ee Core/Loot: Set loot guid and type in Loot constructor 2022-09-11 18:21:01 +02:00
Shauren 9cfc74d8c8 Core/Spells: Corrected implementation of SPELL_ATTR1_ALLOW_WHILE_STEALTHED and SPELL_ATTR2_ALLOW_WHILE_INVISIBLE to use DispelType instead of checking effect types 2022-09-10 21:51:04 +02:00
Meji f75f8d9bb8 Core/Unit: Update collision height calculation (#28239) 2022-09-10 13:42:52 +02:00
Shauren 66b03acc47 Core/Auras: Improve aura interactions with immunities on spell effect level
* Effects that target is immune to will be suppressed instead of completely removed

Closes #28096

(cherry picked from commit 3306a4d06c)
2022-09-05 22:23:03 +02:00
offl b0164fb2b9 Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI (#28059)
(cherry picked from commit b9450bcdd0)
2022-09-05 19:43:09 +02:00
Shauren 7957e2d380 Core/Loot: Allocate Loot separately from objects 2022-09-01 20:07:58 +02:00
Shauren 53b7c4d47c Core/PacketIO: Implemented SMSG_SPELL_HEAL_ABSORB_LOG 2022-07-28 21:26:48 +02:00