Commit Graph
467 Commits
Author SHA1 Message Date
Shauren 96137fb30f Core/Misc: Future msvc warning fixes 2022-01-21 13:40:48 +01:00
Shauren bff5ae51fe Core/Spells: Fixed crash in spell visual selection when CasterUnitConditionID is set 2022-01-15 19:16:20 +01:00
Shauren 72286dc5e4 Core/Conditions: Initial support for UnitCondition.db2 2022-01-15 00:52:55 +01:00
Gildor 81a5bc597b Core/Spells: SPELL_AURA_PERIODIC_DUMMY should be negative if TargetType is enemy (#24864)
(cherry picked from commit 9405f78ee4bfee265a744daa92a8d5b155804cc3)
2022-01-07 00:25:52 +01:00
Carbenium 60b48ad046 Core/Misc: Create new enum for AreaIds
Move Wintergrasp BF related values there

(cherry picked from commit 6a8c12587eef47722f6c845f477e0ca66e9ccd1e)
2022-01-06 23:42:15 +01:00
Gildor 71ce61cc95 Core/Spells: SPELL_AURA_MOD_HEALING should be negative if TargetType is negative (#24862)
(cherry picked from commit a555bf1fd786d1f9b65ed9673ce6f8fc8a2b403e)
2022-01-06 23:30:16 +01:00
Gildor fc43a95729 Core/Spells: SPELL_AURA_MOD_ATTACK_POWER_PCT should be negative if TargetType or Basepoints are negative (#24837)
(cherry picked from commit 7d88891983d5c7d2673be760e11bff12df958d41)
2022-01-06 23:13:44 +01:00
NoName 5417438731 Core/Spells: Crystallize should not use DIMINISHING (#24502)
and also correcting spelling in script

by Rushor and wotlk-enthusiast

(cherry picked from commit 45993428f5c7e7e03d0d98529354e23cd8c7cf98)
2022-01-01 21:38:13 +01:00
Shauren 116a3ab694 Core/Spells: Name more targets (without implementation) 2021-12-29 23:38:09 +01:00
Shauren f5631b7134 Core/Spells: Implemented target 124 TARGET_UNIT_TARGET_TAP_LIST 2021-12-29 19:08:36 +01:00
Shauren 195457b682 Core/Spells: Implemented target 121 TARGET_CORPSE_TARGET_ALLY 2021-12-29 18:04:27 +01:00
Shauren b50783ae80 Core/Spells: Implemented target 115 TARGET_UNIT_SRC_AREA_FURTHEST_ENEMY 2021-12-29 17:56:11 +01:00
Shauren 115409f353 Core/Spells: Implemented target 116 TARGET_UNIT_AND_DEST_LAST_ENEMY 2021-12-29 16:03:52 +01:00
Shauren 730fc4665b Core/Spells: Rename targets 110 to TARGET_UNIT_CONE_CASTER_TO_DEST_ENTRY 2021-12-29 15:08:59 +01:00
Shauren 3c11ae4156 Core/Spells: Rename targets 108 and 109 to include CASTER_TO_DEST wording 2021-12-29 14:56:59 +01:00
Shauren 3a26b0b013 Core/Spells: Implemented target 107 TARGET_DEST_NEARBY_ENTRY_2 (the same as target 46) 2021-12-29 14:50:42 +01:00
Shauren 88cf53e54a Core/Spells: Implemented target 62 TARGET_DEST_CASTER_GROUND (the same as target 125) 2021-12-29 13:43:07 +01:00
Shauren 8921d07201 Core/Spells: Rename TARGET_UNIT_CONE_ENEMY_54 to TARGET_UNIT_CONE_180_DEG_ENEMY and add 180 degree fallback for this target type 2021-12-29 11:47:32 +01:00
Shauren bbdb70ed57 Core/Spells: Implemented target 105 TARGET_UNIT_CASTER_AND_PASSENGERS 2021-12-29 01:18:17 +01:00
Shauren 565ef6a2f4 Core/Spells: Implemented target 136 TARGET_UNIT_CONE_CASTER_TO_DEST_ALLY 2021-12-29 00:12:23 +01:00
Shauren 70f1eaac48 Core/Spells: Rename TARGET_UNIT_CONE_ENEMY_104 to TARGET_UNIT_CONE_CASTER_TO_DEST_ENEMY 2021-12-29 00:12:07 +01:00
Shauren f515424217 Core/Spells: Implemented target 137 TARGET_DEST_CASTER_MOVEMENT_DIRECTION 2021-12-28 22:19:31 +01:00
Shauren 8029035b80 Core/Spells: Implemented target 138 TARGET_DEST_DEST_GROUND 2021-12-28 19:24:24 +01:00
Rushor 2c5eb750b3 Spell: Emerald Drake, Dream Funnel
Closes #24219

(cherry picked from commit 5e6f55381a322d2306d814ae42ebeda92c447376)
2021-12-23 00:21:11 +01:00
NoName 37178ff311 Core/Spells: SPELL_AURA_48 implementation (#24054)
by xvwyh

(cherry picked from commit b3b7f0761d5605d57f9d62ca8e22a8cd9a4df24b)
2021-12-20 22:30:41 +01:00
Giacomo Pozzoni fda1630f74 Core/Spells: Fix Spellsteal stealing Silence buff of Arcane Torrent (#23992)
(cherry picked from commit 7920347f439b1c17805182a4f22d3b3b9f521a29)
2021-12-19 15:30:59 +01:00
Keader 47659e219a Core/Spells: Fixed some issues with Drain Soul
Issue 1: Drain soul was always negative, but effect2 need be positive.
Issue 2: Drain soul was interrupted if someone in your group die. Caused by negative effects proccing in creature.
Issue 3: Since effect2 is positive, it was down-ranking in low level targets and should never happens (fixed before by ariel, transforming everything in negative in 2c8a6fb771a42169a1817149ab0a2a19912ebea7 but it's wrong)

(cherry picked from commit 43c08b176115505b76c027667047f9a5bfcc4e11)
2021-12-18 20:43:05 +01:00
ccrs 4e6c59dca7 Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
        uint8 GetLevelForTarget(WorldObject const* /*target*/)
        void SetLevel(uint8 lvl)
        uint8 GetRace()
        uint32 GetRaceMask()
        uint8 GetClass()
        uint32 GetClassMask()
        uint8 GetGender()

(cherry picked from commit 5c09ff51f7015b775def8d5cc1f678eaef37200f)
2021-12-13 00:42:20 +01:00
Wyrserth 5c5bcba65a Script/ZulGurub: rewrite High Priest Thekal's encounter script (#23429)
(cherry picked from commit 365e2f191efa5576c0045a9ebdffe63e1ea3bac7)
2021-12-13 00:42:18 +01:00
Aokromes 30cec73c61 Coding standards (#23514)
* Coding standards

* revert part

(cherry picked from commit fe744977c917957e112704ccd66e228b826b3f7a)
2021-12-13 00:42:17 +01:00
Shauren 759d2fdd86 Core/Spells: Initialize EffectIndex of empty effects to their proper values instead of always being 0
Closes #27261
2021-12-04 23:20:55 +01:00
Trond B. Krokli b6dc6fd742 Core/Spells: make Four Horsemen debuffs negative (#23253)
By Riztazz
Closes #23248

(cherry picked from commit 1e97dfec538b9113134a67b7d25a1c1d2bc7b662)
2021-12-04 00:31:32 +01:00
jackpoz 43a41caafb Core/Misc: Fix GCC 8 warnings
(cherry picked from commit 1d04a3b216901671eae0104547715a570b1ff3ab)
2021-11-24 23:40:15 +01:00
Keader 33a2d627dd Core/Spell: Fixed some negative spells showing as positive
Closes #22840
Revert 9ecce3319216ca2156441e661a0d7a3a120f4ab9 and 7611242530e7037ecab9bc8a619628128b22fb6f
Update #22757

(cherry picked from commit a0de602d38ffd1ddd9efdde62b24207709979739)
2021-11-18 22:48:34 +01:00
Keader 748e8463c7 Core/Spells: Malleable Goo need be negative
Closes #22757

(cherry picked from commit 9ecce3319216ca2156441e661a0d7a3a120f4ab9)
2021-11-18 22:41:57 +01:00
Aokromes c84d9f5aa9 Core/Spells: Hallowed Wand - Bat custome must be positive
closes #22684

(cherry picked from commit d6d2c4efb911f7b91dd0818e8ae8e8068edfdf37)
2021-11-15 14:41:50 +01:00
Shauren d52c00a8fe Core/DataStores: Updated db2 structures to 9.1.5 2021-11-01 22:17:12 +01:00
HelloKitty c10ea61491 Core/Spells: Include RealPointsPerLevel when determining if aura is negative (#22427)
(cherry picked from commit 0d1eed5dabdc86e4a7ae2d5dfc8f5c17636f69a1)
2021-10-31 01:39:10 +02:00
Keader bb599a9521 Scripts/Ulduar: Algalon the Observer fixes (#22320)
(cherry picked from commit ca7ee982db4d25c464acf6daadc150d58dafa016)
2021-10-23 21:58:25 +02:00
Shauren ba4fa060d7 Core/Auras: Implemented SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL and SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL 2021-10-16 22:05:02 +02:00
Gildor af26380d9b Core/Spells: Shadow of Death & Spiritual Vengeance should be negative spells (BlackTemple/Teron Gorefiend) (#22164)
Closes: #22160
Closes: #22161
(cherry picked from commit e114939071fe0aa09491c2f4ebbb3cf4f3aa5fd9)
2021-10-14 19:16:52 +02:00
Shauren 8492c273dd Core/Spells: Implemented SpellReagentsCurrency.db2 2021-10-10 19:12:17 +02:00
Shauren 8147a42aef Core/Spells: Corrected spell visual fallback logic for spell difficulty entries 2021-10-10 19:02:52 +02:00
Андрей 4c6e89942f Core/Spells: Make some spells negative (#21696)
Closes #21634

(cherry picked from commit 5fa783bd34d8e5b32aded6b87a1e4b196b7c4022)
2021-09-28 20:58:14 +02:00
Shauren 0b882b2fa4 Core/Spells: Update effect value calculations 2021-09-18 15:00:43 +02:00
Shauren f57cf66dac Core/Spells: Typo fix 2021-09-07 11:38:24 +02:00
ariel- 46537c6bcb Core/Spells: tweak 'neutral' spell positivity
- Fixes Mind Control dummy self aura appearing as a debuff

(cherry picked from commit d46f36f7737e6c558c50e1d2a4eadb202ed666bb)
2021-09-05 15:16:05 +02:00
Shauren 8a4e1119ac Core/Spells: Unify spell effect access api in both branches 2021-09-04 15:13:15 +02:00
ariel- 962f6d7988 Core/Spells: rework part 5: GameObject casting
Closes #21330
Closes #18885
Ref #18752

(cherry picked from commit 45c5e1b9d63796d168339a44f63418f220cf2403)
2021-08-28 15:59:11 +02:00
ariel- 65dca120d3 Core/Spells: rework part 4: iterate over effects first
Ref #18395

Implement far spell queue processing
Closes #7395

(cherry picked from commit 080d2c6cd439acb2059adc4e24a279de98aa0db6)
2021-08-28 15:59:11 +02:00