Commit Graph

1160 Commits

Author SHA1 Message Date
Shauren
31da896eb2 Core/Spells: Prevent duplicating trait configs for Generic type 2023-11-02 20:05:29 +01:00
Shauren
9894f6b802 Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 20:20:00 +01:00
Shauren
4e87bd7942 Core/Spells: Named and implemented most of SpellAttr7 2023-10-21 14:49:42 +02:00
Shauren
77429d679a Core/Spells: Removed unneccessary checks from skill spell effects 2023-09-24 12:25:44 +02:00
Shauren
68b6d81d4c Core/Skills: Fixed updating riding skill value when learning riding spells automatically 2023-09-23 20:01:27 +02:00
Shauren
c32b8ac7b9 Core/Spells: Move all summoning spell effects to launch phase 2023-09-15 00:23:43 +02:00
Jeremy
0ede6c1556 Core/Battlegrounds: Rework queues (#29200)
* No more copies of Battleground classes
* FreesSlotQueues now have as key the MapId instead of queue id
* Random queues can now popup already busy specific battelgrounds (queues are NOT merged)
* Removed Holiday handling, this should already be handled in BattlegroundMgr::IsBGWeekend
2023-08-26 14:03:42 +02:00
Shauren
dce71612ef Core/Spells: Prevent rerolling gathering skillups until success when mining or gathering herbs
(cherry picked from commit 92b7c98c01)
2023-08-23 18:46:35 +02:00
Seyden
42a6e0eb1a Core/Spells: Implement sqrt based aoe damage diminishing (#29192)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-08-22 00:02:37 +02:00
ModoX
0c9e46629c Core/Spells: Summons with no special title and duration -1ms should use TEMPSUMMON_MANUAL_DESPAWN 2023-08-14 00:48:21 +02:00
Shauren
0d8221d558 Core/Spells: Handle summon effect on spell launch instead of hit 2023-08-10 00:20:20 +02:00
Shauren
1cae07870b Core/Creatures: Clean up temporary summon duplicate level initialization 2023-08-10 00:19:33 +02:00
Shauren
1dd4b38170 Core/Creatures: std::chrono-ify TempSummon 2023-08-09 11:37:17 +02:00
Shauren
9cdf3530f4 Core/Scripts: Added damage and healing calculation hook to spell and aura scripts allowing to override base damage amount, flat value mod and percent value mod separately 2023-08-01 21:31:06 +02:00
Meji
889e88ab80 Core/Spells: Fixed target radius logic in spell effects for TargetB (#29158) 2023-07-20 10:10:18 +02:00
Shauren
0cea730fa2 Core: Update to 10.1.5 2023-07-12 16:29:00 +02:00
Ovahlord
45333fcc8f Core/Spells: fixed an underflow in SPELL_EFFECT_INEBRIATE when using drinks that sober the character up (such as Starfire Espresso) 2023-07-11 19:06:17 +02:00
Shauren
8bb7d90f21 Core/Spells: Fixed SPELL_EFFECT_TRIGGER_SPELL for spells that require DEST target but their triggering spell does not provide one, for example DH soul cleave damage component 2023-06-25 16:38:00 +02:00
Shauren
a03455acbb Core/AreaTriggers: Add Spell* argument to AreaTriggerAI::OnCreate script 2023-06-24 20:10:14 +02:00
Shauren
0fb8765a66 Core/Items: Item bonus generation improvements
* Pass ItemContext to item creation wherever possible
* Support scaling item levels with m+ keystone levels (not used currently)
* Fixed item link validation when client sends it as default uninitialized bonus list with context only
* Support scaling items depending on current active season (seasons not implemented)
* Implemented content tuning redirection
2023-06-17 16:29:59 +02:00
Shauren
d419fe5ff4 Core/Spells: Corrected effect type implicit targeting for SPELL_EFFECT_CREATE_PRIVATE_CONVERSATION 2023-06-11 00:47:26 +02:00
Shauren
4d4c7e6893 Core/Quests: Quest flag fixups
* Update flag names
* Implemented QUEST_FLAGS_COMPLETION_NO_DEATH and QUEST_FLAGS_FAIL_ON_LOGOUT
* Started using QUEST_FLAGS_COMPLETION_EVENT and QUEST_FLAGS_COMPLETION_AREA_TRIGGER instead of a custom SpeclalFlag
* Renamed Quest::IsAutoComplete to Quest::IsTurnIn to better describe what it means (a quest that can be turned in without accepting it to quest log)
* Implemented QUEST_FLAGS_UPDATE_PHASESHIFT and removed forced phaseshift updates on every quest status change
* Implemented QUEST_FLAGS_LAUNCH_GOSSIP_ACCEPT - reopens gossip menu with questgiver
2023-06-10 20:31:33 +02:00
Shauren
c484530b0c Core/Spells: Added enum flag operators to TriggerCastFlags to prevent accidentally using CastSpellExtraArgs(bool) constructor when CastSpellExtraArgs(TriggerCastFlags) was intended 2023-06-09 00:33:35 +02:00
Shauren
8cfc8e4141 Core/Spells: Always remove spell target from transport on teleport spells if spell destination does not target a position on the transport 2023-06-08 18:37:08 +02:00
Meji
06d0b16f15 Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931) 2023-05-29 00:01:23 +02:00
Shauren
206369934a Core/Spells: Implemented new proc hit type PROC_HIT_DISPEL 2023-05-22 18:55:17 +02:00
Jeremy
f8f1c3b4f0 Core/Areas: Update AreaFlags from EnumeratedStings values (#29008) 2023-05-19 20:11:31 +02:00
Jeremy
205aba1ff3 Core/Battlegrounds: Moved AreaSpiritHealer resurrection handling to respective npc flags (#28508)
* UNIT_NPC_FLAG_AREA_SPIRIT_HEALER
* UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL
2023-05-09 05:20:35 +02:00
Jeremy
cdb209fda4 Core/Spells: Implemented SPELL_EFFECT_TELEPORT_GRAVEYARD
* part of #28508
2023-05-05 09:27:56 +02:00
Shauren
16bc74667e Core: Update to 10.1 2023-05-04 17:00:52 +02:00
Shauren
295c8f6326 Core/Spells: Fixed effects targeting the caster not hitting him immediately on spell launch if the spell targets a dest
* Also improve hit timing for charge spells
2023-04-21 19:05:38 +02:00
Meji
74c280da9e Core/Skinning: Autolearn skill of skinned mob if not already learned (#28894) 2023-04-06 17:28:38 +02:00
Meji
229a7ac79d Core/Skinning: Update correct skinning skill according to creature expansion (#28861) 2023-03-30 17:35:58 +02:00
Shauren
922f60fa25 Core: Update to 10.0.7 2023-03-22 00:08:20 +01:00
Shauren
705d5701bf Core/Movement: Refactor jump speed calculation out of spell code 2023-03-06 00:14:42 +01:00
Shauren
9932046499 Core/Spells: Implemented SPELL_EFFECT_REMOVE_AURA_BY_SPELL_LABEL 2023-02-06 12:34:29 +01:00
Shauren
7395d75b5a Core/Misc: Fixed clang 15 warnings 2023-01-31 18:51:31 +01:00
Meji
03918978c1 Core/Players: Several currency fixes and improvements (#28676) 2023-01-29 17:42:23 +01:00
Shauren
f0fa05773f Core/Spells: Fixed accessing freed memory by Spell::EffectTriggerSpell
Closes #28715
2023-01-12 14:02:21 +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
fa361a40c8 Core/Spells: Fixed crashes with spells cast by gameobject that summon creatures
Closes #28640
2022-12-31 19:29:52 +01:00
Shauren
14c48272fb Core/Spells: Added missing changes for ade34a7f48 2022-12-29 20:25:01 +01:00
Shauren
0cc5ab8372 Core/Players: Implemented new talent system 2022-12-16 22:44:55 +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
734babc6e9 Core/Spells: Corrected effect handle mode for SPELL_EFFECT_SEND_CHAT_MESSAGE 2022-10-28 12:42:31 +02:00
Shauren
ffd112ce6c Core/Spells: Removed unitTarget requirement from SPELL_EFFECT_CREATE_PRIVATE_CONVERSATION as it is executed in SPELL_EFFECT_HANDLE_HIT mode where no units are targeted 2022-10-28 12:42:09 +02:00
Shauren
1011cb73c9 Core/GameObjects: Implemented gathering nodes (gameobject type 50) 2022-10-22 02:07:59 +02:00
Shauren
133334a902 Core/Loot: Implemented personal loot and tag sharing for non-boss loot 2022-10-17 23:11:46 +02:00
Shauren
a4e9542e37 Core/GameObjects: Move contents of Spell::SendLoot to GameObject::Use 2022-10-15 20:39:05 +02:00