Commit Graph
1178 Commits
Author SHA1 Message Date
Shauren f80f931e2b Core/Spells: Prevent creatures from being able to cast all their spells while moving
Closes #26137
2024-05-18 11:50:00 +02:00
Antonio Martín Berti cdffb0565e Core/Spells: Implemented SPELL_EFFECT_REPUTATION_2 (184) (#29971) 2024-05-11 22:48:44 +02:00
Jeremy be11f42a16 Core/Battlegrounds: Move to scripts (#29799)
* Introduce new BattlegroundScript class for map/bg specific scripts
* Remove all sub, zone specific, battleground classes except Arena
* Move all bg zone scripts to new BattlegroundScripts class in script folder
* Remove ZoneScript from Battleground class
* Remove some unused hooks from Battleground
2024-03-28 19:29:22 +01:00
Shauren 1369b87084 Core/Creatures: Implemented CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY (ignore SPELL_EFFECT_SANCTUARY, used by Vanish) 2024-03-04 00:05:35 +01:00
Shauren 97d7ccd180 Core/Quests: Merged UpdateNearbyCreatureNpcFlags, UpdateVisibleGameobjectsOrSpellClicks and SendQuestGiverStatusMultiple on quest actions
* Fixes quest markers above NPC heads not disappearing when player stops seeing questgiver npc flag
2024-03-03 00:50:38 +01:00
Jeremy 409adfa7a5 Core/Battlegrounds: Isle of Conquest Rework (#29687) 2024-02-26 22:33:07 +01:00
ModoX dd15d763cc Core/Creatures: Implemented UNIT_NPC_FLAG_GOSSIP as viewer dependent and update npcflags on quest changes (#29646) 2024-02-24 15:05:21 +01:00
Jeremy 3d56cdc084 Core/Battlegrounds: Strand of the Ancients Rework (#29576) 2024-01-27 18:22:26 +01:00
ModoX 61d16856e4 Core/Unit: Set DemonCreator for wild allied summons 2024-01-25 16:12:06 +01:00
Ovahlord ea093fef27 Core/Units: moved CharmInfo class and its definitions into a own file (#29583) 2024-01-16 18:43:32 +01:00
ModoX b3dce0ac08 Core/Creatures: Added possibility to automatically despawn personal summons on quest remove (#29114) 2024-01-08 21:51:46 +01:00
Jeremy 6db980b69e Core/Battlegrounds: Rework Alterac Valley (#29530) 2024-01-01 23:33:25 +01:00
Meji 37eb2e64a6 Core/AreaTriggers: Refactor (#29500)
* Moved IsServerside to custom flags
* Flags moved from areatrigger_template to areatrigger_create_properties
* New field to create custom CreateProperties (IsCustom)
* New field to reference custom areatriggers (IsAreatriggerCustom)
* Moved fields for shape data to areatrigger_create_properties
2023-12-30 17:14:09 +01:00
Shauren 4dce6ab228 Core/Quests: Implemented QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM that makes required items not be stored in inventory 2023-12-30 15:45:37 +01:00
Jeremy 42de312a79 Core/Spells: Clean up some gameobject types in EffectOpenLock (#29532) 2023-12-28 19:46:50 +01:00
Teleqraph bfbda8dcce Core/Creatures: Refactor CreatureEliteType (#29525)
* Turn into enum class with official names
2023-12-28 19:11:54 +01:00
Shauren 9022f23748 Core/Players: Learn parent skilllines if they are missing while learning child skills
Closes #29482
2023-12-04 19:42:12 +01:00
ModoX 441a102dc3 Core/Spells: Pass customArg from missiles to its triggered spell 2023-11-26 03:03:32 +01:00
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 92b7c98c018c1b950a45fb639e70871dca739ebd)
2023-08-23 18:46:35 +02:00
SeydenandShauren 42a6e0eb1a Core/Spells: Implement sqrt based aoe damage diminishing (#29192)
Co-authored-by: Shauren <[email protected]>
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