Commit Graph
2304 Commits
Author SHA1 Message Date
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 3306a4d06cc557967c23adcc60c2e3257811b324)
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 b9450bcdd0924ca69b5b2cc675f5c2b558ff9b47)
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
Seyden f25aceab28 Core/Spells: Refactor heal absorb code 2022-07-28 21:26:48 +02:00
Nyr 44236c7078 Core/Spells: Implement OnEffectAbsorbHeal and AfterEffectAbsorbHeal hooks 2022-07-28 21:26:48 +02:00
Shauren 073a036d84 Core/Battlefields: Refactor Battlefield creation to be linked to host map creation instead of having globally accessible objects 2022-07-19 23:18:19 +02:00
Kaytotes 2e0afa7bca Core/Units: Removed incorrect facing movement packet sent with every creature autoattack (#28006)
(cherry picked from commit eab6852b686ffaafa3aefb09b9c310c453db55aa)
2022-06-10 19:25:46 +02:00
Shauren c8e26e1962 Core/Vehicles: Capture vehicle collision height for exit spline init function (prevent accessing no longer valid vehicle pointer)
(cherry picked from commit 09204159f856a89e397bfadfbafd8fb3603302e5)
2022-06-10 16:19:14 +02:00
Shauren 36dde87249 Core/Movement: Delay creating MoveSplineInit objects used by GenericMovementGenerator to spline launch time
* This fixes inconsistent transport state detection for players exiting vehicles that are on transport (ICC gunship battle), fixes players being telerpoted to middle of nowhere on that fight

(cherry picked from commit b1a94bf94c500b64a5c4ae92642a95d048d9f392)
2022-06-10 15:16:39 +02:00
Shauren 630b60eb0d Core/GameObjects: Transport (type 11) improvements
* Fully synchronize serverside animation progress with client
* Implemented updating passenger positions on elevators
* Removed visibility hack for elevators that always forced CreateObject packet to be sent to client
2022-05-25 22:14:32 +02:00
Shauren 104c2ddb6a Core/Spells: Implemented SPELL_ATTR6_TAPS_IMMEDIATELY 2022-05-08 19:47:43 +02:00
Shauren 8c85bdb24e Core/Spells: Implemented SPELL_ATTR6_ABSORB_CANNOT_BE_IGNORE 2022-05-08 19:04:11 +02:00
Shauren de592386dc Core/Spells: Autorepeat casting fixes
* Fixed cast bars of ranged spells not disappearing when canceled while autoshooting
* Replaced hacky 500ms delay on non auto shot autorepeat spells with native spell cast time (wands have 500ms cast time)
* Update cooldowns before attempting to cast autorepeat spells (for cases when cooldown ends on the same server tick as cast attempt)
2022-05-08 15:54:15 +02:00
Shauren 538fa8e97f Core/Spells: Cleanup movement checks in spells - use correct interrupt flags 2022-05-07 23:31:55 +02:00
Shauren 0620b829b2 Core/Spells: Implemented SPELL_ATTR6_DELAY_COMBAT_TIMER_DURING_CAST 2022-05-07 20:09:25 +02:00
Shauren 50eff8c238 Core/Spells: Implemented SPELL_ATTR6_NO_PUSHBACK 2022-05-07 00:18:01 +02:00
Shauren 076c63c766 Core/Spells: Implemented SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED 2022-05-02 19:29:51 +02:00
Shauren 8a219b7e39 Core/Spells: Corrected implementation of SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL - it allows casting other spells while channeling, not allows movement while channeling 2022-05-02 16:15:28 +02:00
Shauren d818add0e2 Core/Auras: Added support for SPELL_ATTR5_LIMIT_N limit to other number than just 1 2022-05-02 16:14:41 +02:00
Shauren 8d16a79dea Core/Spells: Rename SpellAttr4 to use official attribute names
* Corrected implementation of SPELL_ATTR4_CLASS_TRIGGER_ONLY_ON_TARGET
* Implemented SPELL_ATTR4_NO_HELPFUL_THREAT
* Implemented SPELL_ATTR4_NO_PARTIAL_IMMUNITY
* Implemented SPELL_ATTR4_ALLOW_PROC_WHILE_SITTING
* Implemented SPELL_ATTR4_USE_FACING_FROM_SPELL
* Implemented SPELL_ATTR4_BOUNCY_CHAIN_MISSILES
* Implemented SPELL_ATTR4_AURA_NEVER_BOUNCES
* Implemented SPELL_ATTR4_AURA_BOUNCE_FAILS_SPELL
* Implemented SPELL_ATTR4_AURA_IS_BUFF
* Implemented SPELL_ATTR5_MELEE_CHAIN_TARGETING

* Implemented SpellEffectAttributes::ChainFromInitialTarget
2022-05-01 20:01:13 +02:00
Shauren 88d7b58a3d Core/Spells: Rename SpellAttr3 to use official attribute names
* Implemented SPELL_ATTR3_NO_AVOIDANCE
* Implemented SPELL_ATTR3_ONLY_PROC_OUTDOORS
* Implemented SPELL_ATTR3_ONLY_PROC_ON_CASTER
* Implemented SPELL_ATTR3_PVP_ENABLING
* Implemented SPELL_ATTR3_SUPPRESS_CASTER_PROCS
* Implemented SPELL_ATTR3_SUPPRESS_TARGET_PROCS
2022-04-30 16:57:32 +02:00
Shauren dda375b986 Core/Spells: Rename SpellAttr2 to use official attribute names
* Corrected implementation of SPELL_ATTR1_ALLOW_WHILE_STEALTHED
* Implemented SPELL_ATTR2_RETAIN_ITEM_CAST
* Implemented SPELL_ATTR2_ALLOW_WHILE_INVISIBLE
* Implemented SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE
* Implemented SPELL_ATTR2_PROC_COOLDOWN_ON_FAILURE
* Implemented SPELL_ATTR2_NO_TARGET_PER_SECOND_COSTS
* Implemented SPELL_ATTR2_DO_NOT_REPORT_SPELL_FAILURE
* Implemented SPELL_ATTR1_REQUIRE_ALL_TARGETS
* Implemented SPELL_ATTR2_CHAIN_FROM_CASTER
* Implemented SPELL_ATTR2_NO_ACTIVE_PETS
* Implemented SPELL_ATTR2_ENCHANT_OWN_ITEM_ONLY
2022-04-28 18:31:26 +02:00
Shauren c88b602a2c Core/Spells: Rename SpellAttr1 to use official attribute names
* Implemented SPELL_ATTR1_NO_SKILL_INCREASE, SPELL_ATTR1_AURA_STAYS_AFTER_COMBAT, SPELL_ATTR1_DISPEL_ALL_STACKS
2022-04-25 22:16:56 +02:00
Shauren a31e681944 Core/Spells: Rename SpellAttr0 to use official attribute names 2022-04-24 18:40:10 +02:00
Shauren 52fb467031 Core/Units: Include SPELL_AURA_MOD_FACTION auras when restoring faction (either on aura removal or .gm off) 2022-04-16 12:15:37 +02:00
Shauren 5558769405 Core/Battlegrounds: Replaced overriding m_team with more fine grained approach 2022-04-16 12:15:37 +02:00
Shauren b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00
Shauren 4eba978670 Core/Misc: Rename SetXXXFlags updatefield functions to ReplaceAllXXXFlags 2022-03-26 18:59:44 +01:00
offl 050f55b62f Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks (#27704)
(cherry picked from commit 3dca705acc953d20e4a43d4c2b3c97a84e5ab346)
2022-03-26 15:15:46 +01:00
Giacomo Pozzoni 8c25abca72 Core/AI: Fix crashes caused by charmed Creatures having null AI for 1 map update tick (#27434)
Implement using ScheduledChangeAI instead of nullptr to signal a required AI change

(cherry picked from commit 19e99db821ba5975e88ec160df3f4ff78ed562b0)
2022-03-24 22:35:05 +01:00
Shauren 56dd1243fd Core/Units: Rename AnimationTier to AnimTier for consistency between branches 2022-03-24 20:44:26 +01:00
Shauren 57d9d16442 Core/Auras: Properly clean up partial charm applications
Ref #24876

(cherry picked from commit 9174281b9253712982273b9b703d9fbac5cef9cd)
2022-03-23 00:06:51 +01:00
Lucas Nascimento 4ed918fcb3 Core/Combat: Fixed combat after remove charm (#27248)
https://github.com/TrinityCore/TrinityCore/pull/27038#issuecomment-958784361
(cherry picked from commit 0cc0b3f926a55fd70a51a90631dde99fbb8c6b8b)
2022-03-21 22:02:34 +01:00
Keader 381c543c60 Core/Unit: Fixed wrong combat stop when set charm
(cherry picked from commit 9b354c6bebdf9fe9c9842330447162edc63cc751)
2022-03-20 23:50:55 +01:00
offl 7a0268d4f1 Core/Scripting: Get rid of ModifyVehiclePassengerExitPos (#27126)
(cherry picked from commit d7adc50daa5a20142e0f39a9f65d39869525fd0e)
2022-03-20 16:27:10 +01:00
Lucas Nascimento 7de20bcc1c Entities/Unit: Fixed wrong combat stop when remove charm (#27038)
(cherry picked from commit fa3a62ae4e890dc526f2f0474e3469ccddb15edf)
2022-03-20 16:03:44 +01:00
Lucas Nascimento 4c632bb690 Core/Unit: Fixed Deterrence stopping working for no reason (#26996)
(cherry picked from commit 63c6f7bc26b73f59165179935d2556aea1636f12)
2022-03-20 00:05:21 +01:00
trickerer 6c9bde098b Core/Combat Improve extra attacks handling (#26859)
* Core/Combat Improve extra attacks handling

* Remove unnecessary _lastDamagedTargetGuid check

* Add missing initialization of _lastExtraAttackSpell. Do not use hardcoded spell ids.

* Partially revert 9f90b835019b

(cherry picked from commit 084f8f3ded45150a57eabd3ad117f1152d4d046d)
2022-03-19 22:37:41 +01:00
offl ad0ebedd9b Core/Misc: Rename UNIT_FLAG_SWIMMING to UNIT_FLAG_CAN_SWIM
Ref #26912

(cherry picked from commit e4a82ee97ad99f751216af47c88f29ff118d771b)
2022-03-15 23:47:31 +01:00
offl c4906ce60b Core/Misc: Rename UNIT_FLAG_NOT_SELECTABLE to UNIT_FLAG_UNINTERACTIBLE (#26913)
(cherry picked from commit c4741a131a0a28b69c228d3637beab7090e5f1e3)
2022-03-15 23:03:26 +01:00
Gildor 9b7c55921f Core/Unit: improve SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL immunities (#26849)
(cherry picked from commit 0fad28e4ab4d7143d629a8f28883a46823680fde)
2022-03-13 23:36:57 +01:00
Giacomo Pozzoni 71c2f0af46 Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken (#26787)
* Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken

* Update scripts

(cherry picked from commit 0800ab20a8039620fd271a43c173c008af68c22a)
2022-03-12 14:45:04 +01:00
offl 53d19b09f4 Core/Creature: rename CREATURE_FLAG_EXTRA_IGNORE_COMBAT into CREATURE_FLAG_EXTRA_CANNOT_ENTER_COMBAT (#26762)
Co-authored-by: offl <[email protected]>
(cherry picked from commit 06b554c36e8f196667e0a72820b37b9dc25bdde0)
2022-03-11 21:20:04 +01:00
jackpoz 98e4bc2d3d Core/Unit: Add more logs for #26325
Add more logs to try spotting the cause of #26325 . It might be that a minion is added to a owner that is not in world.
Report any issue with minions/pets that contain the log.

(cherry picked from commit 3f08c16749984252e657d46cfaa1ef50cd3f5a15)
2022-03-11 19:09:40 +01:00