Commit Graph
32923 Commits
Author SHA1 Message Date
Kittnz 230adbfc0e DB/Map: Add missing npcs and gameobjects on the old Champion's Hall & Hall of Legends instances.
Notes: this areas is not accessible for normal players.
(cherry picked from commit 21b2042840e05ebeba365c54d47c07c13fde123f)
2020-04-29 22:07:16 +02:00
Keader 08635c740a Core/Spells: Fixed Chilled to the Bone
Closes #19417
thanks ariel-

(cherry picked from commit 164af391c9662732dfc9cfe677c48bd3f927c2be)
2020-04-29 21:11:17 +02:00
ariel- 4f6d38fe9d Core/Entities: moved PetAura handling to Player where it belongs
(cherry picked from commit 231ec8331b2ba3cded9f0d67c77c949cd45f5a60)
2020-04-29 01:36:47 +02:00
ariel- 1929ca3aa1 Core/Scripts: remove OnDummyEffect hook/sOnDummyEffect ai hook
- Duplicated logic never used, sometimes only ScriptMgr version was called, sometimes only AI
- They only encourage bad scripting practices
- You can still use OnSpellHit or a SpellScript

(cherry picked from commit b6b59f6c239bc0259c92c28bf43bbb50573330b5)
2020-04-29 01:36:46 +02:00
ariel- 93c19c4194 Core/Misc: camelize GetFaction/SetFaction properly
(cherry picked from commit 4c4dca6d694bd1064b403a31a5b1c776a326f3ce)
2020-04-29 01:36:41 +02:00
Killyana 57b1d76ad5 DB/Creature: Add some missing spawns to Naxxanar area
(cherry picked from commit 5a3a9381e445a7d70464d1b97364778e07bbc6f2)
2020-04-28 22:46:56 +02:00
ccrs a46286a803 Core/Unit: revert 3ea46e57af
After discussion we realized, ariel and me, that Creature and Unit IsMovementPreventedByCasting() have not the same checks (order matters)

(cherry picked from commit 5a2f0ce29e29d934c200f617fec6dad619fab9a5)
2020-04-28 22:42:17 +02:00
Killyana acdbc681cc DB: Some Pathing on Coldarra area
(cherry picked from commit 01d9df27d5661088aae88cb672a412a6d5b9ef2f)
2020-04-28 21:49:49 +02:00
ariel- 6a96addadd Core/Unit: 229444b74a follow-up
- IsFocusing is made virtual again, so there's no need to keep a duplicated function

This reverts commit 5043639c563514c079ba6eb959dd4c1c555fa494.

(cherry picked from commit 3ea46e57afe26778704647084cc6fa55a798e510)
2020-04-28 17:51:57 +02:00
ccrs 104e745edf Core/Misc: cleanup SetInFront uses
Set in front modifies only the serverside orientation, use with care.
Also check for current focus to prevent things like incorrect damage on casting creatures (ie dragon breath direction change in your face because of some taunt missclick)

(cherry picked from commit 229444b74a7e2176db142e0446d4268995c5aad6)
2020-04-28 17:51:25 +02:00
ccrs 2d4549023a Core/Unit: 2170541a51 followup
use true as default value since pretty much all the script calls will expect that

(cherry picked from commit c7a57e2a093ada2ece7a01eac2f627aeb26b08d5)
2020-04-28 17:42:26 +02:00
Keader d1bdb8bdd3 Core/Scripts: Re-hack Boss Loken. Followup 3a0cb90ea994e82dd8c70888fb847082f738d5dc
Loken still need ClearUnitState Hack to DoMeleeAttackifReady work

(cherry picked from commit 4431a1149da7bc48ad1047fc8c6135ed02b2e77b)
2020-04-28 14:59:41 +02:00
ccrs 8c12f36915 Core/Spell: move creature focus
bellow the possible interruptions

(cherry picked from commit df96e053a554692127cce7148447147477351da8)
2020-04-28 14:59:05 +02:00
ccrs 5d411e0b21 Core/CreatureAI: b6b0353bff followup
(cherry picked from commit 5fc366d03bf4e5250443e0573a4c9fa4611968a4)
2020-04-28 14:55:44 +02:00
ccrs 9a57e95f10 Core/Misc: 522f537048 followup
(cherry picked from commit 5043639c563514c079ba6eb959dd4c1c555fa494)
2020-04-28 14:54:44 +02:00
xinef1 9842ca3f4a Core/Spells: Corrected aura SPELL_AURA_MOD_CASTING_SPEED_NOT_STACK handling for auras with very high values (#19054)
(cherry picked from commit e30e11d4c74872c6de87df831696aa643321f6d9)
2020-04-28 14:49:14 +02:00
ariel- 3c2882c29d Core/Player: don't check quest requirements against RewardNextQuest
- This field is only used to propose a new quest to player after completion, shouldn't be used to condition current quest

Closes #19515

(cherry picked from commit a82a12b5ef5c466496c314b5a1eb6838dc598b15)
2020-04-28 14:14:42 +02:00
ariel- f3a49059ac Core/AI: some tweaks on boundary functionality:
- Moved SetBoundary to public scope to allow for greater flexibility (ie set from external script)
- Extended to allow checking inverted boundaries

(cherry picked from commit 6892404b270f57380ffdc9ad084e0f43d94134e0)
2020-04-28 14:07:43 +02:00
ariel- bb3f2a11cf Core/AI: added a function to allow 0 damage attacks (sparring) depending on target
(cherry picked from commit 3a2ecaa05f0a3da96b3d4a0bec44175d6a7dda6a)
2020-04-28 14:05:16 +02:00
jackpoz 49f25f6e33 Core/Misc: Fix static analysis issues
(cherry picked from commit 486b03234304526d8f7d66ff0d99ea3de975745e)
2020-04-28 13:47:58 +02:00
Keader cc148ebc40 Core/Scripts: Added a missing break in Illidan Stormrage script
Thanks Jackpoz

(cherry picked from commit 3194d089cbf2dd30bb3fed3a7f6f7e85730ad0cb)
2020-04-28 13:44:02 +02:00
jackpoz 6611211d31 Core/Misc: Fix static analysis issues
(cherry picked from commit 65aeeafad385cca7d836272c37ee6f4d180d2842)
2020-04-28 13:43:40 +02:00
ariel- dea7159745 Core/Scripts: fix gaseous bloat proc (again)
- UNIT_STATE_CASTING removal not needed for movement now, but it's needed for melee attacking

(cherry picked from commit 85076dd799a76b889d1d22890771f4bc445fd7f8)
2020-04-28 13:40:56 +02:00
ariel- 3eee76b1c6 Core/Quests: implemented MSG_QUEST_PUSH_RESULT notifications
- Allow to share already completed (but not rewarded) quests, restriction was unblizzlike

thanks Cannix for the heads up

(cherry picked from commit 157e9311c41a8d33f7a2e3d5381ffc09d4585c42)
2020-04-28 13:32:46 +02:00
Keader 292c03ec04 Core/Scripts: Fix a typo in Blood Prince Council
Thanks ariel-

(cherry picked from commit 136f1e75aa8968eee9b94fa0d19e46e97332867a)
2020-04-28 13:13:49 +02:00
Killyana 664d002f65 DB/Creature: Caer darrow area
Closes #19256
By Rushor, cala

(cherry picked from commit 4c09b8a02f983e54bdd8049af130f7ca0bde218d)
2020-04-28 12:56:09 +02:00
Killyana 2c60638883 DB/Gossip: Maddix and Alieshor
Updates #19432

(cherry picked from commit 2885dc92d03fd3b08ae6a33dcef99393891727b6)
2020-04-28 12:56:09 +02:00
Xyventh ec508fbdba DB/Gossip: Apprentice Shatharia and Magister Quallestis
Closes #19509

(cherry picked from commit c423b37143f09080c15682fadd88941e35895e73)
2020-04-28 12:56:09 +02:00
Xyventh ca8a2cd2ce DB/Creature: Hargin Mundar
Closes #19508

(cherry picked from commit beceb0a83fb45c9fc1d3b1f96b925afdc6ffc8f0)
2020-04-28 12:56:08 +02:00
Xyventh d762d39d7c DB/Creature: R-3D0
Closes #19506

(cherry picked from commit caed8b43c8913122429d2d2bcbc9ddcfc3b8328a)
2020-04-28 12:56:08 +02:00
Xyventh 9620869bb7 DB: RP event for Dame Auriferous, High Executor Mavren, Advisor Valwyn and Deathstalker Maltendis
Closes #19503

(cherry picked from commit 7559d837b93a2d316a80c7d05f04e1b17676f975)
2020-04-28 12:56:08 +02:00
Xyventh 2bf9b0655e DB/Gossip: Add Missing gossip texts for some NPCs in Sunstrider Isle
Closes #19501

(cherry picked from commit 95ef73901299555daca1d5f72b4055f947b716d3)
2020-04-28 12:56:07 +02:00
xinef1 16cf95654f Various quest system fixes (seasonal quests, timed quests and more) (#18940)
- Unify quest status checking function, use dedicated function instead of direct map checks
- Fixed seasonal quest chains and ability to complete the same quests rewarded in past
- Update area dependent auras on quest status change (they often requires specific quest status)
- Send all not stored quest rewards by mail
- When casting quest reward spell, check if it is not self casted, if so - use player to cast this spell
- Perform full db save on quest reward to prevent data desynchronization
- Don't allow to fail completed timed quests, except for quests which are completed right from the start
- Don't allow to share pooled quests, if they are not available in the current pool (eg sharing easy dalaran weeklies, stored at alt character)
- Remove seasonal quest if rewarded quest is removed
- Don't complete whole quest on AreaExplore event, check if there are no more requirements that should be fulfilled
- Quests with flag QUEST_SPECIAL_FLAGS_PLAYER_KILL can be only credited in quest zone

Closes #18913
Closes #11187
Closes #15279

(cherry picked from commit cbbb74524623ea22fc5375697d6ec2ec16a1755f)
2020-04-28 12:56:03 +02:00
ariel- 9ef39fa5d2 Core/Movement: allow focused spells to not break movement if it's movement allowed spell
- Core/Unit: made IsFocusing virtual

Thanks to ccrs for suggestion

(cherry picked from commit 522f537048189b40a12d68583485d1de7fcbf1d2)
2020-04-28 12:35:23 +02:00
ariel- 52ab270768 Core/Spell: don't make creature change orientation to 0 if channeling self
(cherry picked from commit 1f4439ece49790bee43016ea2462e3803b2f6218)
2020-04-28 12:35:22 +02:00
ariel- 5e32e96278 Core/Spell: define channels without movement interrupt flags as allowed move
- Remove script hacks no longer needed

(cherry picked from commit 3a0cb90ea994e82dd8c70888fb847082f738d5dc)
2020-04-28 12:35:16 +02:00
ariel- 9c53ee0fe8 Core/AI: prevent launching a new MoveChase if victim didn't change
Thanks ccrs for feedback :P

(cherry picked from commit b6b0353bff151d180d98f4f7a67414cfca4bd585)
2020-04-27 18:29:39 +02:00
Xyventh 2bd7c9aa40 [3.3.5] Core/Quest: always send the specified RewardNextQuest regardless of eventual scripts (#19498)
- Fixes certain situations in which the quest window would get stuck after completing a quest

(cherry picked from commit f0bf1fc77aa304ad278618aae25274ed46d308d5)
2020-04-27 18:23:07 +02:00
tkrokli cf3c5dc948 Core/Scripts: Willix the Importer - $n in aggro text
* In the existing core script, Willix the Importer in Razorfen Kraul says
"Help! Get this $n off of me!" (showing the $n part in his SAY text)
instead of naming the attacker when using his 'SAY_AGGRO1' creature_text.

* With this commit change, unit target is no longer missing for Talk,
making Willix name the attacking unit when he shouts for help.

(cherry picked from commit 6cc267d90918a0663f928db302ef1465f7952c61)
2020-04-27 17:29:27 +02:00
ariel- cfdde556cd Core/Player: don't randomly change temporary spell status
- They shouldn't be saved in db
- Prevented temporary spell removal after a save

Closes #14373

(cherry picked from commit 7ffe0563664c2ed5ba90832dcc42bc15acc177c3)
2020-04-27 15:50:27 +02:00
ariel- e3eca0c264 Core/Spell: fix creature focus with channeled spells
- Remove one not needed ReleaseFocus, this is done at finish already

(cherry picked from commit 88c12b45d0adbe7ca18a72a53cb1416b1621975b)
2020-04-27 15:34:38 +02:00
ariel- 92719d1dc9 Revert "Core/Spell: don't set scaleAura for some special spells"
This reverts commit 1ca8434b365687dbd12ca232a615d126234eba5e.

Closes #19472

(cherry picked from commit c296d255e25a2d0eb7155f64eea32cc36fed280a)
2020-04-27 15:20:00 +02:00
Killyana 64ae382d41 DB/Creature: Add missing Spirit Healers
All graveyards are checked

(cherry picked from commit 3028be49296cd2d7efaadd7ab64e3520a934254c)
2020-04-27 15:08:38 +02:00
ariel- 8889b6f54c Core/Unit: fix SPELL_AURA_MOD_DAMAGE_DONE damage calculation on non-melee schools
for Keader :P

(cherry picked from commit 66ac1509ae925edc8848cdf6c370f8ed52c688ec)
2020-04-27 14:58:52 +02:00
ariel- 71c2fda113 Core/Spell: register spell mod owner properly on spell cast
- This fixes pets and totems getting mods from owner

(cherry picked from commit 8b52cf902bf98a05197efa4e96ddd6188eb1a178)
2020-04-27 14:51:36 +02:00
ariel- 677df56d2d Core/Auras: don't skip stack rule check whenever spells have same ID
- The auras might not have the same amounts due to spellmods

Closes #1626

(cherry picked from commit 9414f50f5c60b03871b4bd8d147786f77476ea04)
2020-04-27 14:31:29 +02:00
ariel- 1edfd0d064 Core/Spell: fix broken Unit::GetHighestExclusiveSameEffectSpellGroupValue
- Affects 3 aura effects currently, should be rewritten with GetTotalAuraModifier maybe?

(cherry picked from commit d44a44abacdf3f9fabc37e62806970f97e06332b)
2020-04-27 14:31:29 +02:00
ariel- 60824d8c7a Core/Spell: fix nopch build x2
(cherry picked from commit abaa9d635a6c52f78ec5eb87a5a39890645d5649)
2020-04-27 14:31:29 +02:00
ariel- 3675d2b494 Core/Spell: fix nopch build
(cherry picked from commit f0a93140e88d9dad96aaf60faf0cb8b6e22b5a97)
2020-04-27 14:31:28 +02:00
ariel- 4523c5619b Core/Spell: build fix
(cherry picked from commit 9a051570035f7812786158eb00cf482af35bfb10)
2020-04-27 14:31:28 +02:00