Commit Graph

2683 Commits

Author SHA1 Message Date
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 62cb6ffd33 EventMap: Remove GetNextEventTime and GetTimer methods
Port From (https://github.com/TrinityCore/TrinityCore/commit/3499f518b52552a411e2b1cbdc3d922e64347f02)
2022-03-01 17:34:41 -05:00
hondacrx 9587d3ea7d Update GameTime Methods 2022-03-01 17:33:20 -05:00
hondacrx 556334221b TaskScheduler: use randtime instead of custom implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/c8a4cc806824d93f63cc7e0299428d7b524edddd)
2022-03-01 17:32:51 -05:00
hondacrx c14f1eb3dc Remove custom OptionalType and use the default c# nullable type. 2022-03-01 17:27:56 -05:00
hondacrx cc08afe269 Core/Util: Remove EventMap's non TimeSpan based interface
Port From (https://github.com/TrinityCore/TrinityCore/commit/cd86a015c46f8da581f86857e313d9c596dba7fa)
2022-02-28 14:31:01 -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 4be35daf6f Scripts/Spells: Move spell_anchor_here to generic because is used by more than one boss
Port From (https://github.com/TrinityCore/TrinityCore/commit/0bbdfc6112835396992473c940ae619598f64ec2)
2022-02-28 13:19:42 -05:00
hondacrx 1b37eb0525 Core/Auras: Named new proc flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/c2dd07aa32f5071b7f48819b44344060eae1be06)
2022-02-28 13:17:54 -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
hondacrx 738ef0b1d5 Core/Gameobjects: Traps shouldn't ignore IsImmuneToNPC/IsImmuneToPC and IsInSanctuary rules if has owner
Port From (https://github.com/TrinityCore/TrinityCore/commit/fb39553831936c589697390e4a1827c977103c22)
2022-02-27 23:22:55 -05:00
hondacrx 05c61d9bd5 Core/Spells: SPELL_AURA_MOD_HEALTH_REGEN_PERCENT should be negative if TargetType is enemy and Basepoints are negative
Port From (https://github.com/TrinityCore/TrinityCore/commit/a16c804ea06ec6f8fbae701cf71e19201072478d)
2022-02-27 23:20:13 -05:00
hondacrx f1cfc81fe6 Core/Spells: SPELL_AURA_MELEE_SLOW should be negative if TargetType is enemy or Basepoints are negative
Port From (https://github.com/TrinityCore/TrinityCore/commit/de21d446aac99b6d582acdad922d2c5ed0ada739)
2022-02-27 23:19:13 -05:00
hondacrx e46eb321fd Core/Spells: SPELL_AURA_MOD_MELEE_RANGED_HASTE should be negative if Basepoints are negative
Port From (https://github.com/TrinityCore/TrinityCore/commit/cc6e616e6106e8eb168f528c74f98afb01a6b482)
2022-02-27 23:18:29 -05:00
hondacrx 11768a594b Core/Spells: implement corpse target type support and properly fix resurrections
Port From (https://github.com/TrinityCore/TrinityCore/commit/8f4db9aa6919e2b3b22ec21ffea4eacb605e9bc2)
2022-02-27 21:12:11 -05:00
hondacrx 9f72f655ab Core/SAI: Support SMART_TARGET_POSITION in SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
Port From (https://github.com/TrinityCore/TrinityCore/commit/a270005de1122d18ea4b4e01b114a87bc0e7c0eb)
2022-02-27 15:07:03 -05:00
hondacrx d4a339f29a Core/Commands: Fixed wrong field being used to determine instance type in .lookup map id
Port From (https://github.com/TrinityCore/TrinityCore/commit/279744efcd48394edeab2b3ac03fd2dd9a4175ab)
2022-02-27 15:01:18 -05:00
hondacrx be763ea603 Core/Quests: Fixed quest select query
Port From (https://github.com/TrinityCore/TrinityCore/commit/18cc0b2e4a5023adf61aa959b339dd6114865680)
2022-02-27 15:00:27 -05:00
hondacrx 5bf68e4370 Core/Quests: Remove RewardMoney from quest_template as it is not a static value and depends on receiving player
Port From (https://github.com/TrinityCore/TrinityCore/commit/4c5f57d7129bb1e2adfd2d20779c984473421238)
2022-02-27 14:57:19 -05:00
hondacrx fc33b8cd20 Core/Auras: Store non-unit caster guids in auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/bbed5dc3e8327535e3842650b966291dd90c9bc7)
2022-02-27 14:36:44 -05:00
hondacrx 08aae42fe0 Scripts/Spells: Implement OnPrecast scripting hook for spell scripts
Port From (https://github.com/TrinityCore/TrinityCore/commit/12d00e2e5f7e2cc7efe1ea8d126f9408055c05f8)
2022-02-27 14:33:22 -05:00
hondacrx 6df3ca3a3b Core/SAI: Add SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
Port From (https://github.com/TrinityCore/TrinityCore/commit/f383c0ea214cc4da2d02b81e26297d77ff59c7ed)
2022-02-27 14:29:40 -05:00
hondacrx a36cc8ba2e Core/Movement: Fixed possible crash in HomeMovementGenerator
Port From (https://github.com/TrinityCore/TrinityCore/commit/9c63503527944568e13ae6d8cf9e46bd634f7587)
2022-02-27 14:14:04 -05:00
hondacrx 86d1f0ea1c Scripts/Spells: Updated Power Word: Shield script
Port From (https://github.com/TrinityCore/TrinityCore/commit/03dd82b52d340e9e21e22fff0c3e5fee1a35a52d)
2022-02-27 14:03:46 -05:00
hondacrx dea572cbed Core/Player: do not consider FLAG_EXTRA_NO_XP_AT_KILL or pet status when deciding if a creature counts as a "gives experience or honor" target.
Port From (https://github.com/TrinityCore/TrinityCore/commit/abc490f677607cbe488557ea859da970686c4c3d)
2022-02-27 13:59:17 -05:00
hondacrx aff47f6501 Core/SAI: do not allow the waypoint pause timer to update while in combat.
Port From (https://github.com/TrinityCore/TrinityCore/commit/381333690b33c9148e994d9f68e7d12f1d5dc31d)
2022-02-27 13:58:30 -05:00
hondacrx 1b28a8260c Core/SAI: implement SMART_EVENT_SUMMONED_UNIT_DIES (82), useable by creatures and gameobjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/d4a1a7a040be0ca0d6428669135bcc64d92be1c2)
2022-02-27 13:57:18 -05:00
hondacrx c4fa1a27ea Scripts/Spells: Fix mage Flame On talent
Port From (https://github.com/TrinityCore/TrinityCore/commit/d8efda4ff335ce6252f32e1736b1f99d443bce7b)
2022-02-27 13:50:16 -05:00
hondacrx cf0577c1f3 Scripts/Spells: Fix warlock chaos bolt damage
Port From (https://github.com/TrinityCore/TrinityCore/commit/92335bf900021a8d9fb70e44ef9a2458e37b3468)
2022-02-27 13:46:23 -05:00