Commit Graph
39720 Commits
Author SHA1 Message Date
Jeremy 51d6ad4014 Scripts/OrderHall: Spawn some Warrior Order Hall NPC's and script some of them (#19902) 2019-08-25 12:59:21 +02:00
Shauren 11ebe36e57 Core/ByteBuffer: Replace throw() with noexcept 2019-08-24 17:13:17 +02:00
Traesh 548d79bb06 Core/DataStores: Implemented WorldStateExpression 2019-08-24 17:13:17 +02:00
Shauren 11674e2721 Core/Time: Add function returning tm* structure to GameTime 2019-08-24 13:34:05 +02:00
Lopfest a778f75783 Core/SAI: Restore SMART_ACTION_SET_DATA accidentally deleted in cherry-picks (#23731) 2019-08-22 13:45:11 +02:00
Shauren 70721a9414 Core/Scenarios: Allow slightly larger scenario poi queries
Closes #23728
2019-08-20 14:38:15 +02:00
Shauren 3b004b2cfd Nopch fix2 2019-08-18 11:16:43 +02:00
Shauren 006cf15f09 Nopch fix 2019-08-18 10:58:48 +02:00
Shauren 3b110b30d9 Core: Updated allowed build to 8.2.0.31478 2019-08-18 10:50:57 +02:00
Killyana f9927d173b DB: Remove wrong conditions
(cherrypicked from 675be80e2cadfee47df821a560a7e5ddb20376e4)
2019-08-17 20:04:14 +02:00
ariel- f51a493dc8 Core/Auras: unregister AuraEffect from target list before changing amount, forces recalculation at stack change
Closes #19301

(cherrypicked from 9f2f7ebf51a587199ee7328761c5842c3f491e3b)
2019-08-17 20:04:14 +02:00
ariel- 586a450ec9 Core/Auras: use vectors and remove HasEffect check
- Already checked in GetApplicationList

(cherrypicked from 5eac21098efa35f3c6807a57bc44cc887c0cbc6a)
2019-08-17 20:04:14 +02:00
ariel- 13e79117d9 Core/Auras: make AuraEffect::GetTargetList and AuraEffect::GetApplicationList accept any container
(cherrypicked from c1afabbf038ee2ebefa06871f1007d489f5d570d)
2019-08-17 20:04:14 +02:00
ariel- 56ba22ea98 Core/Scripts: add condition check for npc_wyrmrest_defender
minor code refactors

Closes #19299

(cherrypicked from f7758954f7b9808a56420ac2ca75a83af4e40f4e)
2019-08-17 20:04:14 +02:00
Gustavo 1b85f62b96 Core/Scripts: implement boss Apothecary Hummel ("Love is in the Air" event boss) (#19076)
Closes #5114

(cherrypicked from 8c6fa411e8118752ddbefe8dc022514602859fb9)
2019-08-17 20:04:14 +02:00
ariel- 99a95c9241 Core/Aura: fix SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE unapply case for dead players
Closes #19276

(cherrypicked from e1083794cde600205c45a016e6d077d1ffa4dea9)
2019-08-17 20:04:14 +02:00
xinef1 a0a6b155e2 Core/Spells: Fixed some enchantments checks and fixed serious logic flaw in create item effect check (#19123)
(cherrypicked from 8c80e2b6b723669db7eafa3421e7d53481c5e64d)
2019-08-17 20:04:14 +02:00
ariel- c0b5e074c4 Core/Creature: restore previous behavior of random gender on respawn
Little regression added with 253c0f3d07e05557daa3ffdd4e2a2af4256fb65e

(cherrypicked from 8089f1816c9b5a53a94711586530c808509c5f33)
2019-08-17 20:04:14 +02:00
ariel- 9d16dce633 Core/Auras: tidy up one little hack
(cherrypicked from 9d639c55b186f14de806bcc92c231585bc2f590b)
2019-08-17 20:04:14 +02:00
ariel- f4205b760e Core/Creature: Load template immunities into m_spellImmune container.
- Fixes sending SMSG_SPELL_START data

Closes #19212

(cherrypicked from 7cb6915e2b5395923ab22d712cfd9340da8a7bb6)
2019-08-17 20:04:14 +02:00
ariel- fe2602b772 Core/Creature: remove some redundant code
- Display Ids are already initialized in InitEntry, no need to duplicate logic
- ModelInfo is already checked too

(cherrypicked from 253c0f3d07e05557daa3ffdd4e2a2af4256fb65e)
2019-08-17 20:04:14 +02:00
Keader dbf3225d45 Core/Scripts: Fixed Ingvar evade issue
(cherrypicked from bf5661e2fd05625411b184385412921b3f0fb8c5)
2019-08-17 20:04:14 +02:00
ariel- 6b150b6e55 Core/Auras: implement correct model for Bear Form (used by npcs)
Closes #7337

(cherrypicked from 8e865a60c8152ec6a95e169040903806738bda7f)
2019-08-17 20:04:14 +02:00
ariel- 5f2790815a Core/Creature: don't override display id if addon tables load a morph aura
Ref #7337

(cherrypicked from c3a2bd32cf675d00081ffd447c93d31d48456ca2)
2019-08-17 20:04:14 +02:00
ariel- 590009b084 Core/Scripts: converted Argent Tournament pennants to AI
Closes #14616

(cherrypicked from 804257b99a26ca2dc1941a7577e5ae06c954f9cb)
2019-08-17 20:04:14 +02:00
ariel- 40a9055a5f Core/Auras: Implement Roc form shapeshift
Closes #16164

(cherrypicked from c7a5aa3902ca548ac4355d659e29c6c88cef3525)
2019-08-17 20:04:14 +02:00
ariel- 27b5d18348 Core/Creatures: disabled "automatic" monster sparring
- Faction template flags weren't correct.

Closes #19245

(cherrypicked from b2fc4c65eda779f880d9fc126d8b7aaef8c2ab25)
2019-08-17 20:04:14 +02:00
Killyana 8ae3188bff DB/Quest: The Battle Must Go On
Fix a case that bugs the npc trigger
Thank to xinef1 for the help

(cherrypicked from 6f84bde8b41abc3b54356dc48a71d9269b43fc67)
2019-08-17 20:04:14 +02:00
xinef1 b6a6a43a09 Corrected doors and buttons without autoclose time after recent changes (#19249)
(cherrypicked from 071ba2c924ce4b27c9e16b38277ac729500f7445)
2019-08-17 20:04:14 +02:00
ariel- 4ab07ae4e1 Core/SmartAI: Allow scripting GameObjects by spawn id too
(cherrypicked from 05d99c5f58256f2baa16268dd0c310e3d089a229)
2019-08-17 20:04:14 +02:00
ariel- 7f30b474a3 DB/Conditions: fix Sablemane's Sleeping Powder exploit 2019-08-17 20:04:14 +02:00
ariel- 3d52ba93fc Core/Creature: redo some logical checks in _IsTargetAcceptable
- Check against current creature victim, don't check potential victim attacking list.
- Neutral creatures with aggressive reactstate were triggered to attack from MoveInLineOfSight because of this check
- Prevents attack from a distance after right clicking an npc

Closes #19235

(cherrypicked from 15a207fcac15d336b848f9759f75386e12b6a35f)
2019-08-17 20:04:14 +02:00
ariel- fa46e7c406 Core/Spells: fix some db errors
(cherrypicked from ebba8dcba87190cfdef55bd896a11d2d234cd754)
2019-08-17 20:04:14 +02:00
ariel- 378de1fde0 Core/Game: fix dynamic linking
(cherrypicked from 2a6fe27cade65482e2479629661b5208c37ef884)
2019-08-17 20:04:14 +02:00
ariel- c8f4e59921 Core/Misc: remove unneeded semicolon
(cherrypicked from f612b1cb4801285cc1d9446cd91a07291ffc746e)
2019-08-17 20:04:14 +02:00
ariel- a098405a73 Core/Spell: disable proc for magnet auras, they're handled differently
Closes #19208

(cherrypicked from 7072bf8c02175c8d1e0a0adc78239cdff9ac5ecd)
2019-08-17 20:04:14 +02:00
ariel- b3df95807e Core/Game: fix non-pch include
(cherrypicked from b902f0c1b06b9d2d53df51a7f532f7f11f75a855)
2019-08-17 20:04:14 +02:00
xinef1 73ee82e92c Make ObjectMgrs _mailId and _hiPetNumber atomic (#19129)
- They can be accessed from multiple threads simultaneously

(cherrypicked from 3fe03392d792b4f7ddcc2326f215d9f459bef991)
2019-08-17 20:04:14 +02:00
ariel- d131bd1da0 Core/Database: Prepared statement parameter preallocation (#18999)
- Pass prepared statement size to the helper class to prevent runtime resizing.
- Rename CheckValidIndex -> AssertValidIndex
- Cached prepared size on the worker pool as it's shared among all connections
- Cached query data only for each connection, done lookup in map instead of possibly creating a new element
- Kill the prepared statement map, and store raw sql string on the MySQLPreparedStatement class
(This info is only used for logging, and there is no need of keeping a second container just for it)

(cherrypicked from affee140c6a8e1e9358be2aa0d0088ede218acaa)
2019-08-17 20:04:14 +02:00
xinef1 60663d1374 Ensure that all actions are compared to fixed point in time (ie. world update start) (#18910)
- Actions will not be dependent on processing moment
- Increased GameObjects cooldown resolution to milliseconds, fixes arming time of traps to be exactly one second and not something from range (1000, 1999)
- Created GameTime namespace and UpdateTime class and moved there some code out of world

(cherrypicked from 7567cafec84080d26ea513242a1f540a823b8f9d)
2019-08-17 20:04:14 +02:00
xinef1 98180ecdc1 Core/GameObject: regenerate GO loot if respawn time passed since last loot generation time and not all items were taken (#19101)
(cherrypicked from 7011aabb56f061fc889ec42ce32b7605ceb35b53)
2019-08-17 20:04:14 +02:00
xinef1 6cd254d83b Corrected calculation for SPELL_AURA_PERIODIC_DAMAGE_PERCENT (#19060)
(cherrypicked from ce1108b8a28c1f69840bc161a06f08ee0a147753)
2019-08-17 20:04:14 +02:00
xinef1 825719c25c Remove auras interrupted by falling when we fall to the ground or water (#19115)
(cherrypicked from 9b284ab329b55b0c41f47d171573780205a3a81a)
2019-08-17 20:04:14 +02:00
ariel- aaefda6100 Core/Scripts: Change null-check to assert
- ToPlayer() should never be null in this context

(cherrypicked from 12c680f9b1f1068099c3b19443d93d456690ac56)
2019-08-17 20:04:14 +02:00
Keader f087fbbcc6 Core/Scripts: Fixed crash in Sindragosa
Closes #19227

(cherrypicked from ecfb346d1af39305923db1f19a4568355c4d94e5)
2019-08-17 20:04:14 +02:00
ariel- 9e840d05c4 Core/Misc: always output client cache version on loading
* Do same with hotfix

(cherrypicked from bb553743afd04193822c09caa76753d33ac86098)
2019-08-17 20:04:14 +02:00
ariel- a24cb8a057 Core/Entities: spawned movementtype should override template movementtype
Core/SmartAI: pass the CreatureData pointer (if any) on updating template

(cherrypicked from ff43a74822630c11851abae4cba35a6542e0c86a)

Closes #19223
2019-08-17 20:04:14 +02:00
ariel- 396457e36a Core/Movement: Corrected all speed checks after 23b6991273bac4ee9d7cf1b4ac3b9a92e0a7300e
Ref issue #19210

(cherrypicked from 2e68736afcab26d0bb8e1408fa639d09d4772dfb)
2019-08-17 20:04:14 +02:00
ariel- 5934f53717 Core/Scripts: implement Moss Covered Feet
Closes #19022

(cherrypicked from f302b3d68d2c40a86f0c7be4df9b2fb625ba724f)
2019-08-17 20:04:14 +02:00
Naios 5add0c004e Dep: Use the anonymous namespace free definition of boost::none.
* Fixes MSVC linking errors after the recent changes:

    "class boost::none_t const & const boost::`anonymous namespace'
    ::none" (?none@?A0x518851d0@boost@@3AEBVnone_t@2@EB)
    already defined in scripts_commands.lib...

* Sets the required version of boost on windows to 1.66
  according to the wiki.

(cherrypicked from 3da60f84000bd7ffa5a1516839b84cdee4764448)
2019-08-17 20:04:14 +02:00