Commit Graph

1081 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 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 6a2110d548 Core/Spells: Using hearthstone will teleport caster to map again
Port From (https://github.com/TrinityCore/TrinityCore/commit/d342be8c79a126ef01db9423484449d3ba7d97c7)
2022-02-27 13:43:49 -05:00
hondacrx 2c03f9d1be Core/Items: Reagent bank
Port From (https://github.com/TrinityCore/TrinityCore/commit/a3b2e4d9873874e29291f0c9851ae154029b1b3b)
2022-02-26 23:32:00 -05:00
hondacrx b66c37f34e Core/Conditions: Update phases when quest objective is updated
Port From (https://github.com/TrinityCore/TrinityCore/commit/16a80656c51affe44de19940bc519dccbaa3ee3f)
2022-02-25 19:43:56 -05:00
hondacrx 5720b89b7e Core/Player: Added PlayerCreateMode field to playercreateinfo_cast_spell to only cast spells based on related mode
Port From (https://github.com/TrinityCore/TrinityCore/commit/8a61024cfad05279791badf33fcdb5a608ad6e94)
2022-02-25 19:43:04 -05:00
hondacrx a4195763d0 Core/Items: Change missed enchantment flag checks to use enum instead of raw number
Port From (https://github.com/TrinityCore/TrinityCore/commit/1989c68fb67e967297d3bf804f1b8650b6e8a5a2)
2022-02-25 17:34:28 -05:00
hondacrx 06df87c79a Core/Conditions: Added conditions for object visibility
Port From (https://github.com/TrinityCore/TrinityCore/commit/b987a8968b45b8d5c86ab7e66d3910d2ecfe0963)
2022-02-25 17:23:55 -05:00
hondacrx 63be1f8dd5 Core/Units: Fixed crash happening when despawning summoned units whose owner is no longer in world
Port From (https://github.com/TrinityCore/TrinityCore/commit/5889ab893e8252ef46ea00527f5e91bf97371182)
2022-02-25 14:19:54 -05:00
hondacrx 6f0b8760e2 Scripts/Spells: Fix shaman Mastery: Elemental Overload + Stormkeeper and Unlimited Power talents
Port From (https://github.com/TrinityCore/TrinityCore/commit/bd19e225137377a0d6925960b715f58ea18652bc)
2022-02-25 14:18:39 -05:00
hondacrx 4679bc9980 Core/Items: Implemented many new enchantment flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/241193cd0287c3d7a2cbaf7f2c5775d414b4d0b3)
2022-02-24 16:16:46 -05:00
hondacrx 569232c3fe Battlefields: Move BF scripts out of game
Port From (https://github.com/TrinityCore/TrinityCore/commit/49523a74a4c28e5ae17f9a8352aa8224b765b7d8)
2022-02-24 10:51:24 -05:00
hondacrx 628a24923c Core/Misc: Move WorldState enum to SharedDefines
Port From (https://github.com/TrinityCore/TrinityCore/commit/ca62d93481f60807679c8632e09fa6f48f29de68)
2022-02-23 17:01:51 -05:00
hondacrx 3c6e9e7795 Core/Misc: Create new enum for AreaIds
Port From (https://github.com/TrinityCore/TrinityCore/commit/60b48ad0467c4578d9944e53d9c55ed4b970a4ec)
2022-02-23 16:45:12 -05:00
hondacrx 87bff09387 Core/Players: do not update position data on character creation
Port From (https://github.com/TrinityCore/TrinityCore/commit/ab46d25d0cce31c23dac86560b8e97d395d374a7)
2022-02-23 16:29:44 -05:00
hondacrx 99b4a7ea8b Misc fixes 2022-02-23 16:28:45 -05:00
hondacrx 19abbbf0b5 Core/Misc: Fixed resistance calculate for Mutated Transformation and Twilight Bloodbolt
Port From (https://github.com/TrinityCore/TrinityCore/commit/4110a06e8193329c31cb9d59d346294835fd51a5)
2022-02-22 20:11:11 -05:00
hondacrx bc52ff717a Core/Units: flight and hover checks will now consider movement template data as well as manually set flight states
Port From (https://github.com/TrinityCore/TrinityCore/commit/294657f7dd4d2db1ca6dcf66f0b0895c6ba92949)
2022-02-22 19:59:03 -05:00
hondacrx 55e9ab5d39 Entities/Player: Restore old checks for UpdatePvPFlag
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4b3e694e822315a635b9ea598d1fab9e2069c3d)
2022-02-22 19:53:53 -05:00
hondacrx 87d3646a83 Core/Creature: Allow to disable HP regen in Raids even if the target is unreachable
Port From (https://github.com/TrinityCore/TrinityCore/commit/07863a7a6817dbb16fbd740130149bf727a6a136)
2022-02-22 19:49:05 -05:00
hondacrx db46b39a93 Core/Quests: Add missing GO_DYNFLAG_LO_ACTIVATE to lootable chests related to quests but not having quest loot
Port From (https://github.com/TrinityCore/TrinityCore/commit/0e586bb476f5d36df646539f5bb3d47a2101e9fc)
2022-02-22 19:42:56 -05:00
hondacrx 8ba914cb61 Core/Quests: Fixed gameobject sparkle state for lootable quest items by moving ItemAddedQuestCheck/ItemRemovedQuestCheck after item is added/removed
Port From (https://github.com/TrinityCore/TrinityCore/commit/b1a1e552d2acb394ad0d0a2544aeef6ad93ca4fb)
2022-02-22 19:39:43 -05:00
hondacrx 8fa43cd0bd Core/Objects: fixed destination calculation for destination based spells casted by flying units
Port From (https://github.com/TrinityCore/TrinityCore/commit/0c15b2ac7cd8f57004b009a99ec357ef2eefecb3)
2022-02-22 19:20:18 -05:00
hondacrx 98206ec201 Fixes aura infinite loop
Port From (https://github.com/TrinityCore/TrinityCore/commit/9cb01a79046fce3f76835bb68bf66e4f3079e4bc)
2022-02-22 18:37:01 -05:00
hondacrx c27475ae46 Core/MMAPs: Adjust walkable climb and fix a lot of mmap raycast issues
Port From (https://github.com/TrinityCore/TrinityCore/commit/89afeed41b4f040e4852b35183f30291588662d7)
2022-02-22 14:24:29 -05:00
hondacrx 0600993129 Further improve ChrRace DBC handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/406c7219ad6454a3f3855c9e0732245dcc34b2dc)
2022-02-22 14:08:30 -05:00
hondacrx 8ce8408f91 Core/Misc: Define and use ChrRacesFlag and CreatureModelDataFlags
Port From (https://github.com/TrinityCore/TrinityCore/commit/d30e4a20e52a5025c59bfc746570ff7ef06af6f4)
2022-02-22 13:49:20 -05:00
hondacrx c9fa7d22fc Core/Units: Allow mind controlling non-controllable vehicles (for example players that become vehicle during boss encounters or creatures that only are vehicles to show non standard power type)
Port From (https://github.com/TrinityCore/TrinityCore/commit/d56d92fbe7436af00e00b00ca5e7640f852d3485)
2022-02-22 13:43:52 -05:00
hondacrx 14ec7655ad Core/Spells: Relaxed aura exclusivity check to allow casting spells that have other, non-aura effects even if aura will not be applied
Port From (https://github.com/TrinityCore/TrinityCore/commit/6413466693e424ee42744a4cdb8b24502631fa49)
2022-02-22 13:28:18 -05:00
hondacrx a911dd50f6 Core/Movement: followup
Port From (https://github.com/TrinityCore/TrinityCore/commit/875da437806b8956324078bc9abd0a495345d2e5)
2022-02-22 13:26:27 -05:00
hondacrx 9721f6406e Core/Objects: use the static vmap check in MovePositionToFirstCollision for all path results to avoid falling below wmo surfaces when the mmap path returns unreliable data
Port From (https://github.com/TrinityCore/TrinityCore/commit/b8e1de0f929598c2ebb8da2ee3de99f91be43d14)
2022-02-18 17:37:39 -05:00
hondacrx e6b9631ed0 Core/Objects: further improvements for MovePositionToFirstCollision
Port From (https://github.com/TrinityCore/TrinityCore/commit/26e7da1622b217f66d28771836014ca9023efd16)
2022-02-18 17:27:32 -05:00
hondacrx cb68969f1d Core/Objects: optimize and improve MovePositionToFirstCollision results
Port From (https://github.com/TrinityCore/TrinityCore/commit/b8805f43897bc5b22a7e7491b055b8dad84a34aa)
2022-02-18 17:15:45 -05:00
hondacrx 67b7d1203c Core/Player: add helper methods for PLAYER_FLAGS_DEVELOPER
Port From (https://github.com/TrinityCore/TrinityCore/commit/9d38eeec7e222edfe74740efd8e7af16103b0221)
2022-02-18 17:00:01 -05:00
hondacrx a031530b2a Core/Auras: Prevent getting negative scale with auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/679e9910e09a55dd1743f236dbd99b7fa48fe9c1)
2022-02-18 16:40:32 -05:00
hondacrx e7eba5907d Core/Spells Fixed scroll stacking check when not targeting self
Port From (https://github.com/TrinityCore/TrinityCore/commit/c9443f190abdf2467386c64c0b476e2d6ec545f6)
2022-02-18 16:34:20 -05:00