Commit Graph

1300 Commits

Author SHA1 Message Date
Shauren
0cea730fa2 Core: Update to 10.1.5 2023-07-12 16:29:00 +02:00
Shauren
263d1f4fe5 Core/Spells: Fixed crash in spells with charge effects that also apply another effect on the caster
Closes #28983
2023-07-01 00:51:15 +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
bacfbec251 Core/Spells: Allow filtering procs in FINISH phase by SpellTypeMask 2023-06-29 00:06:49 +02:00
Jeremy
815e158a3e Core/Creatures: Implement CREATURE_STATIC_FLAG_4_IGNORE_LOS_WHEN_CASTING_ON_ME (#29029) 2023-06-28 19:01:14 +02:00
ModoX
80e22230c3 Core/Spells: Implemented target type TARGET_DEST_DEST_TARGET_TOWARDS_CASTER (#29085) 2023-06-24 01:16:00 +02:00
Shauren
afe1b1eeed Core/Spells: Added debuginfo to SpellEvent assertions 2023-06-19 00:44:06 +02:00
Shauren
a97cdfc8f5 nopch build fix 2023-06-17 00:05:25 +02:00
Shauren
cd7c5eff49 Core/Spells: Validate known heirlooms for SPELL_EFFECT_CREATE_HEIRLOOM_ITEM 2023-06-16 23:54:29 +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
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
526b16fea4 Core/Objects: Unify GameObjectSearcher, UnitSearcher, CreatureSearcher and PlayerSearcher classes into one common implementation 2023-05-28 16:54:23 +02:00
Shauren
261eb201bf Core/Objects: Unify WorldObjectSearcher classes into one common implementation 2023-05-28 16:07:34 +02:00
Shauren
3790c1e3da Core/Spells: Implemented spell target type 142 2023-05-28 01:14:19 +02:00
Jeremy
f8f1c3b4f0 Core/Areas: Update AreaFlags from EnumeratedStings values (#29008) 2023-05-19 20:11:31 +02:00
Teleqraph
c7ff9a9083 Scripts/Spells: Implement Summon Sayaad (#28907)
Co-authored-by: ModoX <moardox@gmail.com>
2023-04-23 16:49:01 +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
ModoX
a7256209cc Core/Spells: Readded accidently dropped line in 0750b7f845 2023-04-13 12:29:02 +02:00
Shauren
7b31080258 Core/Misc: Modernize code a bit by replacing std::tie with either structured bindings or operator<=> 2023-04-06 17:46:58 +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
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
9fe8ee3622 Core/Spells: Make CastSpellExtraArgs copy and movable 2023-02-28 00:22:18 +01:00
Shauren
a8bb1739e9 Core/Spells: Refactor Spell::finish to accept SpellCastResult argument instead of just a bool indicating success 2023-02-28 00:19:31 +01:00
Shauren
3400c5a52c Core/Spells: Updated silence flags for 9.0 and rename unit flag to its new meaning 2023-02-26 00:58:48 +01:00
Meji
03918978c1 Core/Players: Several currency fixes and improvements (#28676) 2023-01-29 17:42:23 +01:00
Shauren
badb55bfd9 Core/Spells: Added additional validation to loading spell_linked_spell to prevent infinite loops
Closes #28753
2023-01-15 13:30:17 +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
d8a4668c77 Core/Misc: Add missing Containers.h include where neccessary 2023-01-06 16:44:11 +01:00
Teleqraph
6515319b75 Core/Auras: Implemented SPELL_AURA_MOD_STUN_DISABLE_GRAVITY (#28511)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-30 01:16:29 +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
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
9fb4c1ca02 Core/Gossip: Implemented GossipOptionNpc.AzeriteRespec 2022-10-14 20:34:58 +02:00
Shauren
9b924522d0 Core/Instances: Delete InstanceSaveMgr and replace most of its uses with new InstanceLockMgr 2022-10-04 00:19:38 +02:00
Ovah
ad2df01b2c Core/Spells: make Spell::CheckMovement respect the current spell state (#28315) 2022-10-03 15:52:49 +02:00
Ovah
9f08471827 Core/Spells: fixed up block mechanics (#28286)
* Ranged attacks can now be blocked
* Implement SPELL_ATTR3_COMPLETELY_BLOCKED
* Fixed a bug which was causing blocking to block entire spell effects regardless if the attribute was present or not
* Fixed a logic mistake which was causing blocks to roll twice (once for effect negation and once on hit)
* No longer send blocked miss conditions in spell_go packets when the spell is not completely blocked to match sniff data

(cherry picked from commit b47ef3ce90)
2022-10-01 18:42:04 +02:00
Shauren
b2eeca702c Core/Spells: Move entering combat for caster and calculating crit chance to separate function called only once for each target instead of doing it once for every effect on every target
(cherry picked from commit f3384fecaa)
2022-09-05 22:23:03 +02:00
Shauren
a7b7ad94f8 Core/Spells: Simplify combat flagging code on spell launch and impact
(cherry picked from commit e2840a3f81)
2022-09-05 22:23:02 +02:00
Alan Deutscher
ff99952dfb Core/Spells: Delay combat flagging for spell targets until spell missile lands
(cherry picked from commit b59706c8b6)
2022-09-05 22:23:02 +02:00
Shauren
7957e2d380 Core/Loot: Allocate Loot separately from objects 2022-09-01 20:07:58 +02:00
Shauren
6713fa4c93 Core/Scripts: Added CalcCastTime spell script hook 2022-07-29 20:24:28 +02:00
Teleqraph
47086f9e69 Core/Spells: OnPrecast script should be called before ReSetTimer (#28146) 2022-07-26 23:07:22 +02:00
Shauren
073a036d84 Core/Battlefields: Refactor Battlefield creation to be linked to host map creation instead of having globally accessible objects 2022-07-19 23:18:19 +02:00
Shauren
b8e52fd90b Core/Maps: Made instance_template no longer required to create and enter instance maps 2022-07-17 19:14:13 +02:00
Jinnaix
84996901cc Core/Spells: Correct flagging spell caster for pvp when healing/buffing friendly creatures - it should only happen if target is in combat (#27977)
(cherry picked from commit b155209ec4)
2022-06-10 19:25:31 +02:00
Gildor
b52ce8e65e Core/Spells: Increase search radius for avoid problems with some spells that can't find units with huge combat reach (#27827)
(cherry picked from commit 70767717c1)
2022-06-10 15:29:55 +02:00
Shauren
104c2ddb6a Core/Spells: Implemented SPELL_ATTR6_TAPS_IMMEDIATELY 2022-05-08 19:47:43 +02:00
Shauren
de592386dc Core/Spells: Autorepeat casting fixes
* Fixed cast bars of ranged spells not disappearing when canceled while autoshooting
* Replaced hacky 500ms delay on non auto shot autorepeat spells with native spell cast time (wands have 500ms cast time)
* Update cooldowns before attempting to cast autorepeat spells (for cases when cooldown ends on the same server tick as cast attempt)
2022-05-08 15:54:15 +02:00