Commit Graph
33143 Commits
Author SHA1 Message Date
ariel- 47ca8cb021 Core/OutdoorPvP: fix another warning
(cherry picked from commit 6b493808068d293aaae1fa50b6acbc1abee7b81f)
2020-07-16 22:00:29 +02:00
ariel- 66d66b00ee Core/OutdoorPvP: fix warning
(cherry picked from commit a05e1095c6edb2b9717a217f785499778901a2ae)
2020-07-16 22:00:29 +02:00
ariel- bd96262248 Core/OutdoorPvP: refactor using Position and Quat to pack parameters
- Moved statics to cpp
- Save scriptids into an array

(cherry picked from commit 3e7b64b2f765bebc722c1194b7fc2f749fae77f7)
2020-07-16 22:00:29 +02:00
ariel- 68131dbd92 Core/Spell: fix some spells that shouldn't allow stealth or invisibility
- Touch of Zanzil
- Glowing Blood
- Lambent Blood
- Vibrant Blood
- Black Blood
- Perpetual Instability

(cherry picked from commit b58a364192ee3e30fa8e58f1aca617780321000b)
2020-07-16 22:00:28 +02:00
ariel- ca5cbad6f0 Core/Scripts: remove non-player objects (ie corpses) from Sindragosa's Fury targetlist
(cherry picked from commit b3336cf9433f14dbcc2e9a7eecb4062a936401b2)
2020-07-16 22:00:28 +02:00
treeston 5392212799 So, I came in trying to fix gameobject LoS. So I restructured some stuff.
Then it turned out that gameobject LoS is already fixed. So all this does, really, is restructure some stuff.
And remove the hack from Sapphiron because I could.

(cherry picked from commit d57307f63d8deb51003d61163adccce4e2c1bd47)
2020-07-16 22:00:28 +02:00
treeston 2e8ce5a70f Added new BoundaryUnionBoundary subclass of AreaBoundary, which does what it says on the tin. Hi, sirikfoll.
(cherry picked from commit 9e80e977df56834d4cdc76a57a417a86a1dbda65)
2020-07-16 22:00:28 +02:00
Golrag 2f27e41c3d Core/Maps: Corrected GetWaterOrGroundLevel (#19863)
* When a gameobject was above water like in ToC. It would return water level

(cherry picked from commit a2c123b5296b2723ae2a0211e7aaafe37fb9246d)
2020-07-16 22:00:28 +02:00
jackpoz a3dbf4b088 Core/Scripts: Simplify code
Partially revert 753e7074d84b5a2e8d3c3e92d25c54bb25ba477e and 12c680f9b1f1068099c3b19443d93d456690ac56 to simplify the code and to only remove GMs from the target list.

(cherry picked from commit f9cfc202e90ded24fe0dcf5d06035d2aab2cf6af)
2020-07-16 22:00:28 +02:00
kelno e576ddbb82 Core/Misc: Fix typo in UNDERWARER_INDARKWATER (#19864)
(cherry picked from commit f5fd0b5ef329bd464e797abc1a1b25be72b1ba40)
2020-07-16 22:00:28 +02:00
ariel- e300d39562 Core/Scripts: filter out corpses from Sindragosa's Fury targetlist
- This would incur in a crash after attempting to convert the Corpse object into Player

Closes #19227
Closes #19862

(cherry picked from commit 753e7074d84b5a2e8d3c3e92d25c54bb25ba477e)
2020-07-16 22:00:28 +02:00
treeston 8eaf00a11f Fixed a potential crash when resuming a SplineChainMovementGenerator.
(cherry picked from commit e5301e2c989f9a0092aede92a38f8c75fb978b2a)
2020-07-16 22:00:28 +02:00
Treeston 51ce3b1c1d [3.3.5] Get zone/area IDs from vmap data in the liquid update (#19840)
* Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup
* Use this lookup in Map:: relocation methods to update m_areaId and m_zoneId fields on WorldObject
* Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields
* Clean up liquid state handling on Unit and Player
* Hand floor's Z coord up through GetFullTerrainStatusForPosition, use it to update a new field in WorldObject, and use that to feed a new GetFloorZ call on WorldObject.

Closes #16489

(cherry picked from commit f6c849729b27b77228704b595de3adaf24da2c10)
2020-07-16 22:00:24 +02:00
Treeston f7a7d02a7f Pet/Guardian AI hook re-organizing (#19824)
* Pet/Guardian AI hook re-organizing:
- Adjust OwnerAttacked/OwnerAttackedBy hooks on CreatureAI to fire for all owned units, not just player pets. This should allow guardians to more reliably recognize valid targets.
- Kill off the AttackedBy hook. While it was defined in CreatureAI.h as virtual, it was only ever invoked for player pets in specific situations. This makes it classic developer bait.
  - Adjust PetAI to use DamageTaken instead of AttackedBy.
  - Adjust behavior of AttackStart on PetAI to compensate.

(cherry picked from commit 1660bb7d27d6f42b49012a6b57e3c2b2eab20fd3)
2020-07-16 21:47:28 +02:00
ariel- 5903a10a83 Core/AI: segregate GameObject ReportUse from normal Use (lock open/normal click)
Closes #19819

(cherry picked from commit 2335b9de1a46a409c714a1dc89cbd0565545e70e)
2020-07-16 21:47:28 +02:00
Carbenium f27b7ba285 Core/Player: Reserve TELE_TO_TRANSPORT_TELEPORT used in 3.3.5 2020-07-16 21:47:27 +02:00
treeston bb7061407f SAI fixes follow-up: I missed one.
(cherry picked from commit cb265e02aa38c17e203191b68966879a1ccb7b31)
2020-07-16 21:47:27 +02:00
treeston e6145a8ec4 Fix a whole set of possible infinite loop crashes in SAI (events triggering themselves even with cooldown set).
(cherry picked from commit 823007934a2bd084a4e6e607da9369fbea16c99d)
2020-07-16 21:47:27 +02:00
treeston 323e3b9cde Re-check target evade state on projectile impact and adjust accordingly. This fixes the incorrect message ("Absorb" instead of "Evade"), and also removes the root cause of the original evade follow bug (that was prevented in 1945874).
(cherry picked from commit b983ec11bd6e6f0fa80c739ddca2152759fb587e)
2020-07-16 21:47:27 +02:00
Aokromes 7246d58f0a DB/Misc: Update access_requirement comments to map.dbc content
Closes #19810 by ForesterDev

(cherry picked from commit 17096ff08a3d5213404fb7f2bc911617f4745dd4)
2020-07-16 21:47:27 +02:00
ariel- 47f7481876 DB/Spell: prevent Vile Gas (H Rotface version) from hitting non-players
(cherry picked from commit 5c94b52a4d247532c759e53ca4f006d2ebc46b99)
2020-07-16 21:47:27 +02:00
Shauren fbdf8784a5 Core/Instances: Fixed and optimized instance id reuse
(cherry picked from commit 2639056071597edfdf74b31a16ce644610a1b6d9)
2020-07-16 21:47:27 +02:00
Keader f4ac8146b6 Core/Spells: Allows Dispersion under Freeze (stun by hunter trap)
(cherry picked from commit 672bc29df96e67c6588f1f1e75da52ce8b8cdc1d)
2020-07-16 21:47:27 +02:00
TecDian 1aaf09b199 Core/Scripts: simplify speech for DK races quests
(cherry picked from commit 3f34c2f5ebe8d0d9f97b169d1ace07d6ab3f3102)
2020-07-16 21:47:27 +02:00
ariel- 960bfcabc3 Core/SAI: properly validate stored targets when using SmartTrigger and fix a related crash
(cherry picked from commit 866074b6899d87df6c835b936524d9f76ba78949)
2020-07-16 21:47:27 +02:00
Keader 87c5ddeab6 Core/Spells: Allows Dispersion and Barkskin to be used under death coil
(cherry picked from commit abc749034eb71b8a7c499541c10c71987c558e4a)
2020-07-16 21:47:27 +02:00
sirikfoll 1d99860757 Core/Scripts: Updated Sunwell Plateau instance model
(cherry picked from commit 2984def452b2106fc3409ccdcc411028efaceb01)
2020-07-16 21:47:27 +02:00
treeston 4179036bbe Some improvements to .debug raidreset command. Now supports heroic difficulty 5-man dungeons and outputs sensible text, as opposed to silently doing (or not doing) stuff.
(cherry picked from commit a3b198c7e19d6627e6078702ffcbaa67969e4943)
2020-07-16 21:47:15 +02:00
ariel- 259bde5914 Core/SAI: Change SmartScript::GetTargets to return an ObjectList instead of a ObjectList*
Applied the same treatment to GetWorldObjectsInDist

Honestly no idea why the original idea insisted so much
on using pointers. No more missing null checks or deletes.

SmartAI's "ObjectList" is now a std::vector instead of a std::list
because no where it was being used as an actual list.

Original idea by DDuarte :P

(cherry picked from commit a97439e8d63c0a78bda8a6ed4801f122385936e3)
2020-07-16 20:59:25 +02:00
Francesco Borzì eb7d09b0b7 Docs/AUTHORS: fix SD2 link and add UDB (#24260) 2020-07-16 14:34:43 +02:00
funjoker e781d9ac00 DB/Hotfixes: Update locale hotfixes 2020-07-14 17:33:41 +02:00
funjoker 9eb1bfed14 DB/Hotfixes: Update hotfixes 2020-07-13 22:34:36 +02:00
Shauren 2ff1fd0e95 Core/DataStores: Replace harcoded prepared statement offsets with named constants 2020-07-13 21:30:33 +02:00
Shauren 49a99811de Tools: Update RetardCheck() 2020-07-09 15:14:16 +02:00
Shauren 87fea85431 Core/Spells: Fixed crash in SpellInfo::GetAuraRankForLevel 2020-07-07 22:27:26 +02:00
Shauren d195646593 Core/Auras: Named two test realm aura types 2020-07-07 12:16:02 +02:00
Shauren 20e2f3632a Core/Maps: Added optional *.tilelist file to map_extractor output which contains a list of existing tiles to speed up map creation in worldserver 2020-07-06 16:36:30 +02:00
sueastward 80fa086f7d DB/Creature: Scourge Gryphon
Closes #24330
2020-07-05 20:52:12 +02:00
Shauren 59f1f60a83 Core/DBLayer: Optimize string based query results by eliminating unneeded buffer copies 2020-07-05 12:17:47 +02:00
Shauren beceafc39f Core/DataStores: Skip loading hotfixes for locales that are not loaded from files first 2020-07-04 20:18:57 +02:00
funjoker 3a96a62f0a DB/Hotfixes: Add hotfix_blob data for all locales 2020-07-04 20:03:26 +02:00
funjoker 590f541019 Core/Hotfixes: Add locales to hotfix_blob (#24913) 2020-07-04 19:09:36 +02:00
Shauren aa44a9f08b Core: Add mac client support for build 34963 2020-07-03 20:11:06 +02:00
funjoker 1037605993 Update gameobjects_locale hotfix to 34963 2020-07-03 03:29:03 +02:00
funjoker 8ebbdbdd07 Update locale hotfixes to 34963 2020-07-03 03:05:39 +02:00
funjoker a6e62ad8d9 Update Hotfixes to 34963 2020-07-03 01:04:53 +02:00
Shauren 4ae6433105 Core: Updated allowed build to 8.3.0.34963 2020-07-02 10:33:33 +02:00
Shauren 6cbd6476f0 Nopch fix 2020-07-02 00:37:50 +02:00
Shauren 661470c658 Core/PacketIO: Convert all leftover packets to use packet classes 2020-07-02 00:07:38 +02:00
Shauren 4499f203a3 Core/DataStores: Fixed sending localized hotfixes and improved db2 loading error messages 2020-07-01 00:34:51 +02:00