Commit Graph

2641 Commits

Author SHA1 Message Date
Shauren
112e60003f Core/Creatures: Allow UNIT_FLAG2_INTERACT_WHILE_HOSTILE to be set in database 2023-09-27 14:41:27 +02:00
Shauren
41a20b1e40 Core/Achievements: Fixed achievement criteria StartEvent and FailEvent
* Criteria using StartEvent cannot be updated without that event triggering first (not only for timed achievements)
* Implemented most StartEvent and FailEvent types
* Fixed saving criteria removed by RemoveCriteriaProgress
2023-09-25 00:53:56 +02:00
Shauren
a667d723bf Core/Pets: Improved pet despawn behavior when mounting
* Pets will now only be despawned when starting to fly
* Fixed crash when summoning a pet that is different than the one that was despawned by flying

Closes #29303
2023-09-10 11:54:09 +02:00
Shauren
ba224f70ad Core/Auras: Defined and implemented new aura interrupt flags 2023-09-03 16:06:43 +02:00
Shauren
ed98146d31 Core/Spells: Allow cancelling spell missiles without cancelling the entire spell 2023-08-26 23:36:26 +02:00
Shauren
c9751eb737 Added changes missing from previous commit 2023-08-26 18:28:13 +02:00
Shauren
7b9493eec7 Core/Auras: Allow effects of SPELL_AURA_SCHOOL_ABSORB_OVERKILL to be prevented by setting absorb value to 0 in script 2023-08-26 15:37:57 +02:00
Shauren
9e1b97900e Core/Auras: Minor optimization for Unit object creation with msvc (not allocating a list end sentinel node for all of the 500 lists stored in Unit for each aura type) 2023-08-18 18:23:29 +02:00
Shauren
ac1c041944 Core/Spells: Damage and healing bonus calculation fixes
* Spells with SPELL_DAMAGE_CLASS_NONE are now allowed to benefit from spellmods
* Fixed SPELL_AURA_MOD_DAMAGE_DONE_VERSUS_AURASTATE and SPELL_AURA_MOD_HEALING_DONE_PCT_VERSUS_TARGET_HEALTH not working for players
2023-08-14 13:34:40 +02:00
Shauren
1dd4b38170 Core/Creatures: std::chrono-ify TempSummon 2023-08-09 11:37:17 +02:00
Shauren
98007f859b Core/Misc: Turn ChrSpecialization into enum class 2023-08-07 00:05:36 +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
Shauren
197d4369c8 Core/Spells: Removed old combo point code leftovers 2023-07-31 11:55:00 +02:00
Traesh
ea134c0eae Core/AI: Implemented OnHealthDepleted hook (#29134) 2023-07-24 14:31:03 +02:00
Krudor
d3bc5ebf16 Core/Units: Fixed knockback angle calculation for players (#29165) 2023-07-21 20:51:03 +02:00
Shauren
40cdf0750d Core/Units: Fixed crash (previously was a memory leak) when vehicle creatures are deleted without ever being added to world
Closes #29166
2023-07-21 00:19:48 +02:00
Aqua Deus
6a760de79b Core/Auras: Implement SPELL_AURA_MOD_DAMAGE_PERCENT_DONE_BY_TARGET_AURA_MECHANIC (#29162) 2023-07-20 20:17:38 +02:00
Teleqraph
88ff97c1f9 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-07-20 19:09:27 +02:00
Teleqraph
53f9abec14 Core/Unit: Added helper functions to modify UNIT_FLAG2_CANNOT_TURN (#29160) 2023-07-20 12:20:15 +02:00
Traesh
bbe7cba7f4 Core/Units: Allow autoattack if channelling with SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL (#29133) 2023-07-16 14:08:48 +02:00
Shauren
1f8eddc4f0 Core/Players: Fixed base hit chance initialization for players 2023-07-15 22:06:56 +02:00
Ovahlord
ab33f35bb5 Core/Unit: modernize some pointers and arrays in unit class (#29104) 2023-07-15 21:47:31 +02:00
Shauren
0cea730fa2 Core: Update to 10.1.5 2023-07-12 16:29:00 +02:00
Shauren
36ecc2d8cb Core/Auras: Removed triggering aura effect from SPELL_AURA_OVERRIDE_AUTOATTACK_WITH_MELEE_SPELL handling (paladin Crusading Strikes combines this with a proc aura on another effect on the same spell) 2023-07-02 00:04:58 +02:00
Shauren
29eac37a16 Core/Spells: Fully prevent infinite proc loops and add logging to detect most spells that could possibly trigger this behavior at startup
Closes #28865
2023-06-29 11:39:02 +02:00
Shauren
8c4a966dc0 Core/Auras: Use std::vector for temporary copies of aura lists 2023-06-28 11:45:29 +02:00
Shauren
63b2188e75 Core/Auras: Fixed accessing invalid iterators in Unit::CalcHealAbsorb (ChangeAmount removes and readds current effect to iterated list) 2023-06-28 00:13:53 +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
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
Teleqraph
c4aa4d4b53 Core/Spells: Implement SPELL_ATTR10_RESET_COOLDOWN_UPON_ENDING_AN_ENCOUNTER (#29032) 2023-05-29 10:43:48 +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
Jeremy
f8f1c3b4f0 Core/Areas: Update AreaFlags from EnumeratedStings values (#29008) 2023-05-19 20:11:31 +02:00
Shauren
1325e0c4b2 Core/Units: Power handling improvements
* Don't include creature_template power multipliers in CreateMana updatefield
* Allow NPCs to have power types other than mana
* Add missing Essence config regeneration rate
* Fixed demon hunter powers not decaying immediately after combat
* Fixed some powers decaying immediately out of combat after energizing (for example holy power)
* Replace hardcoded list of powers to set to full on levelup with a db2 flag check
* Updated Creature::GetPowerIndex for 10.1 new power types
2023-05-09 23:16:30 +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
Teleqraph
145bb98ecb Core/Auras: Implement SpellAuraInterruptFlags2::Falling (#28941) 2023-05-06 22:54:13 +02:00
Shauren
f4e5c381ac Build fix 2023-05-06 21:19:58 +02:00
Teleqraph
15135ce16f Core/Auras: Implement SpellAuraInterruptFlags2::StartOfEncounter (#28938)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-05-06 20:56:01 +02:00
Teleqraph
513788e884 Core/Auras: Implement SpellAuraInterruptFlags2::AbandonVehicle (#28944) 2023-05-06 17:44:19 +02:00
ModoX
920b9a99bd Core/Unit: Named npc flags UNIT_NPC_FLAG_AREA_SPIRIT_HEALER and UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL 2023-05-06 14:39:13 +02:00
Shauren
16bc74667e Core: Update to 10.1 2023-05-04 17:00:52 +02:00
Shauren
c563d52c8d Core/Auras: Removed outdated aura type handling 2023-05-01 00:32:51 +02:00
Meji
d6133c78de Core/Units: Calculate HoverHeight from model data (#28899) 2023-04-09 18:17:08 +02:00
ModoX
0750b7f845 Core/Creature: Implemented sparring with max health percent thresholds (#27198)
Co-authored-by: Ovah <dreadkiller@gmx.de>
2023-04-06 01:01:02 +02:00
Shauren
15451ce699 Core/Auras: Fixed iterator invalidation crash with procs using SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE attribute 2023-03-31 00:19:43 +02:00
Meji
81ea6f54d9 Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale (#28863) 2023-03-30 18:54:27 +02:00
Meji
229a7ac79d Core/Skinning: Update correct skinning skill according to creature expansion (#28861) 2023-03-30 17:35:58 +02:00
Meji
cc57c9dad5 Core/Creatures: Improved movement interruption while casting spells (#28845) 2023-03-24 12:27:01 +01:00
Shauren
51569217ad Core/Units: Added functions to modify WorldEffects updatefield 2023-03-18 20:49:02 +01:00
Shauren
512f5138d4 Core/Creatures: Use togglable CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS instead of equivalent flag from creature_template.type_flag 2023-03-17 23:02:47 +01:00
Shauren
d26d38075c Core/Creatures: Allow disabling melee attacks for all creatures, not just the ones using SAI 2023-03-13 20:22:47 +01:00