Commit Graph

2207 Commits

Author SHA1 Message Date
hondacrx 718302fa18 Core/Pets: Pet management refactoring
Port From (https://github.com/TrinityCore/TrinityCore/commit/ca92686b44cc8c53a8991bf02d6e8534797fc115)
2022-03-10 09:39:55 -05:00
hondacrx bfd598b640 Core/Scripts: Expose IsCrit to hit hooks for spell scripts
Port From (https://github.com/TrinityCore/TrinityCore/commit/2cc652b305f31ebcc71680f314792d0d09c43bfe)
2022-03-09 17:39:49 -05:00
hondacrx 73f8b600a3 Core/Guilds: Fixed loading of guild member logout time
Port From (https://github.com/TrinityCore/TrinityCore/commit/ea8245493292ccf6b5041a43637b717e55293a5f)
2022-03-09 17:36:15 -05:00
hondacrx bdc6cdfcc1 Core/Objects: Don't consider SMSG_UPDATE_OBJECT packets that contain only destroyed objects as empty
Port From (https://github.com/TrinityCore/TrinityCore/commit/faf12a888394f220fa057526b56bd456f3790f4f)
2022-03-09 14:53:21 -05:00
hondacrx ffd0f4280b Core/Objects: Cleanup SmoothPhasing code - move to separate files and better integrate it with visibility system
Port From (https://github.com/TrinityCore/TrinityCore/commit/70442041300bb0a1146717497fd5f771d874befa)
2022-03-09 14:51:55 -05:00
hondacrx f0d1a632ff Core/Objects: Implement SmoothPhasing part of CreateObject and replacing visible objects
Port From (https://github.com/TrinityCore/TrinityCore/commit/a5c713eaf21ce086074cf5934d1ee105c2c86922)
2022-03-09 14:09:03 -05:00
hondacrx e65a1e95cf Core/Objects: Properly choose between "Destroyed" or "OutOfRange" during visibility update
Port From (https://github.com/TrinityCore/TrinityCore/commit/5a82a0381d704e4b4b9976daf04d541d1130e541)
2022-03-09 12:33:25 -05:00
hondacrx 510a1a0208 Core/Objects: Add overridable function UpdateObjectVisibilityOnDestroy
Port From (https://github.com/TrinityCore/TrinityCore/commit/472384e75781ce362af9721fc16928da9eea82dd)
2022-03-09 12:26:16 -05:00
hondacrx b1de89a781 Core/Spells: Exclude empty mods from affecting spells and ignore PointsIndexX mods for spells that don't have any effect at that index
Port From (https://github.com/TrinityCore/TrinityCore/commit/4fbf6dacffc83c2ae0a983d5981c3ad0c382f0ae)
2022-03-04 17:47:56 -05:00
hondacrx 8c6e487e5a Scripts/Spells: Move shaman Lava Burst crit chance calculation to scripts and add Lava Burst Overload
Port From (https://github.com/TrinityCore/TrinityCore/commit/1696d738608fa8ed30321b5b4050d5516b5765f6)
2022-03-04 17:38:54 -05:00
hondacrx edafd0a270 Scripts/Spells: Fix shaman Earthquake
Port From (https://github.com/TrinityCore/TrinityCore/commit/3e725e1d2521547ea651ef2b4e01c980c9b5ff3e)
2022-03-04 17:35:08 -05:00
hondacrx 6b0fb6766e Misc fixes 2022-03-04 17:23:44 -05:00
hondacrx 82389dbaeb Core/SAI: Spell casts that cannot be executed because the unit is currently casting another spell will be retried asap with priority over other events
Port From (https://github.com/TrinityCore/TrinityCore/commit/f2ee365da43f851181c8a486e10325a95b75c55d)
2022-03-04 17:20:01 -05:00
hondacrx 1670c09454 Scripts/Commands: Use enum type arg for HandleDebugAnimCommand
Port From (https://github.com/TrinityCore/TrinityCore/commit/ec44c8296d155aab8862987848a87a1a81049c12)
2022-03-03 13:52:48 -05:00
hondacrx 0116a7efa5 Core/ChatCommands: Add support for enum type arguments
Port From (https://github.com/TrinityCore/TrinityCore/commit/3923650aeb75611023aa1d46a4328838c8e0a33c)
2022-03-03 13:51:22 -05:00
hondacrx bfd3cd9731 Core/Unit: Make HandleEmoteCommand typesafe
Port From (https://github.com/TrinityCore/TrinityCore/commit/2e3c612c808bca7601b32ce5dca28b204e652773)
2022-03-03 13:44:00 -05:00
hondacrx b5206453f6 Core/AI: Remove code that removed UNIT_DYNFLAG_LOOTABLE from possessed units
Port From (https://github.com/TrinityCore/TrinityCore/commit/7d548c34a961f4dd5e1a831e0a414970a4abff8c)
2022-03-03 13:37:48 -05:00
hondacrx fc1ad317d4 Core/SAI: Fix creatures casting with flag SMARTCAST_COMBAT_MOVE not switching to melee when the school of the spell they are trying to cast gets silenced (and other cases of spell failure)
Port From (https://github.com/TrinityCore/TrinityCore/commit/e11e1938b5237a198c82cfdf128a9b6c1e3686ad)
2022-03-03 13:30:54 -05:00
hondacrx 0b38096d10 Core/Units: add new functionality for units to block or enable combat interactions
Port From (https://github.com/TrinityCore/TrinityCore/commit/2819951dce545438724719836e3a13d3039b8690)
2022-03-03 13:26:46 -05:00
hondacrx 2a2860ef10 Core/Unit: Creatures' minions now engage in combat if their controller is attacked
Port From (https://github.com/TrinityCore/TrinityCore/commit/adfb05055141829620487234e665754d8d957e20)
2022-03-03 13:22:09 -05:00
hondacrx 3f8c0f897a Core/SAI: Fix creatures casting spells while moving with flag SMARTCAST_COMBAT_MOVE
Port From (https://github.com/TrinityCore/TrinityCore/commit/b3545479bfbd2b743288bd32094ce8c4856a1e3d)
2022-03-02 18:02:58 -05:00
hondacrx 47bea619f7 Scripts/Comamnds: Improve ".debug objectcount" command
Port From (https://github.com/TrinityCore/TrinityCore/commit/ffd85f9139119ec56a8a6f3add4ef4c0f047b838)
2022-03-02 18:00:52 -05:00
hondacrx e839f2234c Misc cleanups 2022-03-02 17:34:33 -05:00
hondacrx 712dd7b9de Core/Common: Merge TimeTrackerSmall with TimeTracker
Port From (https://github.com/TrinityCore/TrinityCore/commit/8809d54ca2daa230b1439f012c8b10ee88d6beae)
2022-03-02 14:06:04 -05:00
hondacrx 0576cc0a07 Core/DBLayer: Add nicer api for SQLQueryHolders
Port From (https://github.com/TrinityCore/TrinityCore/commit/d5dcf02196e30c932c7a25c3975a91a0fe1ccd50)
2022-03-02 13:27:52 -05:00
hondacrx 30a5bcdb4d Misc fixes 2022-03-02 10:04:24 -05:00
hondacrx 150b09205b Core/Mail: Load mails at login instead of on demand when queried by packets (logging in always sends one of the packets that cause mail loading anyway)
Port From (https://github.com/TrinityCore/TrinityCore/commit/a9b4f9aca0d0b90e59e0ed26e9bb4cce7d0ceeab)
2022-03-02 09:52:35 -05:00
hondacrx 6e6ee2d694 Core/Misc: Replace database query in WorldSession::HandleAddFriendOpcode with async version
Port From (https://github.com/TrinityCore/TrinityCore/commit/54a6e603ffc8b4913669cf0f189a966d25b620d8)
2022-03-02 09:35:51 -05:00
hondacrx c26134cc27 Core/SAI: Ignore SAI while evading
Port From (https://github.com/TrinityCore/TrinityCore/commit/1977d26050d1b0c6f2d21fe3316147ae0df9fc64)
2022-03-02 09:19:34 -05:00
hondacrx 511bce7b00 Core/Loot: Prevent loot already looted item
Port From (https://github.com/TrinityCore/TrinityCore/commit/8847f37b5bb8e42068ea10e007216e8abf6189fc)
2022-03-02 09:18:34 -05:00
hondacrx 9f1051bd4a Core/World: added startup log outputs for query cache initialization for detailed information.
Port From (https://github.com/TrinityCore/TrinityCore/commit/9c38dc2367e1bb59a5a4ad7a52abd522a035ae5d)
2022-03-01 23:49:30 -05:00
hondacrx 042bfc12e5 Convert alot of methods to use TimeSpan. 2022-03-01 23:47:53 -05:00
hondacrx 6f1b2f5cd5 Core/Combat: Disable triggers entering combat
Port From (https://github.com/TrinityCore/TrinityCore/commit/1dfcb7086e17902f0904ee6c09bc55a229b65cc1)
2022-03-01 17:38:12 -05:00
hondacrx 9587d3ea7d Update GameTime Methods 2022-03-01 17:33:20 -05:00
hondacrx c14f1eb3dc Remove custom OptionalType and use the default c# nullable type. 2022-03-01 17:27:56 -05:00
hondacrx b4a59ea746 Misc fixes 2022-02-28 14:16:57 -05:00
hondacrx 03c646d2c8 Core/CombatAI: Use TimeSpan overloads of EventMap
Port From (https://github.com/TrinityCore/TrinityCore/commit/d62b7c1e352e76f35490c22b2ab291ed299f4fa4)
2022-02-28 14:13:02 -05:00
hondacrx facb5c89a1 Core/Spells: Check a few aura effects for determining if should be negative
Port From (https://github.com/TrinityCore/TrinityCore/commit/81154a7455fccdcc55e740f98d73face3adc8da4)
2022-02-28 14:06:44 -05:00
hondacrx ce4851a33a Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e9cf3828bad44cf193d6c9717b392de7346157a5)
2022-02-28 14:04:49 -05:00
hondacrx 561b5a528d Misc fixes 2022-02-28 13:28:57 -05:00
hondacrx c82e78d4cb Core/Player: Introduce separate level caps for each expansion
Port From (https://github.com/TrinityCore/TrinityCore/commit/b7353fb92795801c2c2a52035026e9e0059fa83d)
2022-02-28 13:25:22 -05:00
hondacrx 64b23b9de9 Core/Units: Named unit flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/b4952db4640ee3ec6a7df8545b5c582202f36405)
2022-02-28 13:16:41 -05:00
hondacrx b538ed9a24 Core/Creature: Add null check for charmed creatures
Port From (https://github.com/TrinityCore/TrinityCore/commit/ff778a7581b47458d257e867931de0f3b46589e4)
2022-02-28 13:10:02 -05:00
hondacrx cfc5b510ce Core/Spells: Expose corpseTarget to spell scripts with SpellScript::GetHitCorpse()
Port From (https://github.com/TrinityCore/TrinityCore/commit/c7cf9f8c6c59f7fcc61d5f18a4c53302fb450bbd)
2022-02-28 13:09:05 -05:00
hondacrx bd040a1f17 Creature/AI: Remove SetVisible from SmartAI::InitializeAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/77d76ecc1d13069fcff3fd1b609c924bca5ee965)
2022-02-27 23:47:00 -05:00
hondacrx cb58698045 Core/Events: refactored battleground holiday assignments. Instead of going with shitty bitmasks we now accept plain battleground ids instead
Port From (https://github.com/TrinityCore/TrinityCore/commit/7a5529eb58daad9216416c9c632543b1a931ce1f)
2022-02-27 23:44:42 -05:00
hondacrx bb094c585b Core/Pools: Attempt to workaround pools being broken
Port From (https://github.com/TrinityCore/TrinityCore/commit/74923df35afe6f41b94edada701d50fc53bbaf6e)
2022-02-27 23:38:18 -05:00
hondacrx f55e8ae73c Core/PetAI: Validate GetCharmInfo()
Port From (https://github.com/TrinityCore/TrinityCore/commit/8fd7a4b6e5f6b728c4ae40cfd2080c4dae004e8f)
2022-02-27 23:36:55 -05:00
hondacrx 7f86f6ce1e Core/Gameobjects: Improve IsValidAttackTarget faction check for traps that hasn't owner or have NPC owner
Port From (https://github.com/TrinityCore/TrinityCore/commit/054b62be3b20270bac8e36901c3e0ab14f66e58f)
2022-02-27 23:31:47 -05:00
hondacrx 353a12b010 Core/Spells: Check a few aura effects for determining if should be negative
Port From (https://github.com/TrinityCore/TrinityCore/commit/a8edacd20b8250785b649bba22f0e920815885b6)
2022-02-27 23:28:57 -05:00