Commit Graph
39720 Commits
Author SHA1 Message Date
ariel- 6436727ef7 DB/Creature: correct 2 npc walk/run speed
Closes #18207

(cherry picked from commit a7259cef4f3a12e7a547259b694709e430c4b7bd)
2017-12-30 21:37:40 +01:00
ariel- 0c81d70394 Core/GameObject: use a friendly trigger for positive spells.
Fixes an issue with Skadi Harpoons.

Note to self: should actually implement GameObject casting already :/

(cherry picked from commit 3f1d020a2cee1436c5e0c891bc7a63147659b497)
2017-12-30 21:32:08 +01:00
ariel- e5a21fb6ce Core/Scripts: add checks to Master's Call script
Closes #8403

(cherry picked from commit 361b185ef7bfb0eff3e82c0b12deaf5b597bebee)
2017-12-30 21:32:08 +01:00
ariel- 6d7abb8181 Core/Spell: do not fail triggered Charge effects in case a root is present.
Fixes Master's call when pet is rooted

(cherry picked from commit 5daabe303e9132c3b398eca44b9d0f4e9fb694ec)
2017-12-30 20:47:04 +01:00
joschiwald f00f3c414e Core/Spells: Removed obsolete code 2017-12-30 20:44:26 +01:00
ariel- 169243852d Core/Globals: Load spellspecific and aurastate after loading spell ranks
Was breaking functionality (eg: stacking scroll auras)

(cherry picked from commit b99ca19eea9b62a907d5daed39d823be00607eec)
2017-12-30 20:34:55 +01:00
Shauren 7fd83b8c0f Nopch build fix 2017-12-30 18:01:36 +01:00
Rochet2 bbd7e3e326 Tools/MMapsGenerator: Get all tiles in beginning and calulate proper total tile count (#21139) 2017-12-30 17:47:30 +01:00
joschiwald a6594c3831 Core/Spells: Fixed SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT
Closes #20504
Closes #21061

(cherry picked from commit 790a253893f122693d7351aab2f5d91cf3a4fb37)
2017-12-30 16:42:50 +01:00
Rochet2 ff28ff500d Core/Pools: fix pool memory usage (#21138)
Change vector to unordered map to save memory and startup time
2017-12-30 16:15:41 +01:00
Shauren 96b29d2fa5 Fix base sql 2017-12-30 00:52:26 +01:00
Shauren 69a4ad408f Core: Updated allowed build to 7.3.2.25549 2017-12-30 00:29:32 +01:00
Shauren 76a90df12f Tools/Mapextractor: Updated db2 list for 7.3.2 2017-12-30 00:26:39 +01:00
Shauren 7264ce09b1 Core/Misc: Updated gameobject template fields and GameError enum 2017-12-30 00:26:38 +01:00
Shauren 87758326fc Tools/Extractors: Update to 7.3.2.25480 2017-12-30 00:26:38 +01:00
Shauren d66f140960 Dep/CascLib: Update to ladislav-zezula/CascLib@c63818ecf8 2017-12-30 00:26:38 +01:00
Shauren 7bb62cd23d Core/DataStores: Updated db2 structures to 7.3.2.25480 2017-12-30 00:26:37 +01:00
Shauren 20a3c9eed2 Core/PacketIO: Update opcodes to 7.3.2 2017-12-30 00:23:43 +01:00
Shauren 90834606a2 Core/Entities: Update updatefields to 7.3.2.25383 2017-12-29 12:57:56 +01:00
Shauren 965f4de083 Core/Units: Encapsulate UNIT_CHANNEL_* fields 2017-12-29 12:57:55 +01:00
Shauren b49fa9658a Tools/Patcher: Properly sign certificate bundle 2017-12-29 12:50:12 +01:00
Mihapro 02022d3cd6 Core/Player: Automatically learn riding spells for certain race/class combinations
* Paladins, Warlocks, Druids and Worgens automatically learn Apprentice Riding at level 20
* Death Knights start with Journeyman Riding
* Demon Hunters start with Artisian Riding + Flight Master's License
2017-12-28 23:34:33 +01:00
joschiwald 071b23d606 Fixed typo (thx @lukaasm) 2017-12-28 17:45:34 +01:00
ariel- 2eb9791fc9 Core/Unit: consider creatures with same faction to be on the same party/raid for the purposes of spell/aura targets
Ref #18233

(cherry picked from commit 699e22cb4c8204c7b1302efc01e387f4afb2967f)
2017-12-26 20:30:55 +01:00
ariel- 43260b7ebb Core/SpellScript: allow optional parameters to be passed to FinishCast
followup of 50a3ce5703bdaa4fe16e2e773eabafa9a4818083

(cherry picked from commit aa21137aeb5cc9034dad47ea3fc0e46232d80db0)
2017-12-26 20:30:36 +01:00
joschiwald 5465b4f46e Core/Spells: Fixed proc cooldown 2017-12-26 19:52:09 +01:00
Killyana 447b78f57b DB/Misc: Dark portal Event
Original work: https://github.com/callmephil/SunWellCore/blob/2f2f8a61101ff15878b5e40473a8aae9028a4607/sql/events/stair_of_destiny.sql

(cherry picked from commit bf5799fce5da19a78af6805e29ee75da4d147f12)
2017-12-26 19:51:31 +01:00
joschiwald 3c2a9f4059 Fixed nopch build #2 2017-12-26 19:26:42 +01:00
Keader c7d7464a2d Core/Scripts: Cleanup in instance_black_temple and added missing datas (#18246)
* Core/Scripts: Cleanup in instance_black_temple and added missing datas

* Fixed door timing issue

* Remove redundant call

(cherry picked from commit 81edee5648e76ff946269ae10974affc9e334bb2)
2017-12-26 19:23:25 +01:00
joschiwald b17aa07409 Fixed nopch build 2017-12-26 19:13:33 +01:00
ariel- 5a91e1e31b Core/Spell: revamp of immunities system
- Spell attributes research
- Container optimization
- Do not skip damage immunity checks on SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY present
- Added additonal arguments support to SendCastResult / CheckCast, spells can now send proper error messages
- Loads spell immune masks/states/effects at startup.
- This cached info is used whenever a spell cast requires immunities to be known beforehand (to see if an aura could be applied for example)

Closes #16658
Closes #16901
Closes #18114

(cherry picked from commit 50a3ce5703bdaa4fe16e2e773eabafa9a4818083)

Core/Spell: fix warning

(cherry picked from commit 3588ff894bef2fc1f1600c73ad67fbdceecf8e2a)

Core/Unit: misc codestyle

use typedef for constant reference

(cherry picked from commit 7943150dcb20597f30259354563d79fb1606b21f)

Core/Spell: Fixed immunities for some spells (they were broken before rewrite too)

- Warlord's Presence, Uncontrollable Frenzy, Free Friend
- Overload, Lightning Tendrils
- Fervor, Berserk
- Determination

(cherry picked from commit fc6844173f70f436b92fb0dbc4398290ce935038)

Core/Spell: fix typos

(cherry picked from commit f060efbdb4c51a7fe22cb6a9012cc76477a1f92b)

Core/Unit: improved handling of some spell attributes

- SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE
- SPELL_ATTR2_UNAFFECTED_BY_AURA_SCHOOL_IMMUNE
- SPELL_ATTR3_IGNORE_HIT_RESULT

(cherry picked from commit 352c84943c4495631a5dd1e9285cde35fdc23c37)

Core/Spell: fix typo

Closes #18248

(cherry picked from commit 1ad9c7d3fd4e7cfb2a6b12fc37bd748cf5fd772b)

Core/Spell: perform charmer check against player controlling unit. Fixes spellcasts while charmed

(cherry picked from commit 425f6c3c34b72190e481ba89fd4757df238475d8)

Core/Unit: don't use damage immunity to calculate hit result for the whole spell. Should be used only for damage

(cherry picked from commit 9f5df023b746d324588f175e264c62205b69e165)

Core/Spell: fix a potential null dereference crash

(cherry picked from commit 64304d8b2b33ac04d3013d47b2f50c5023300c2e)
2017-12-26 17:11:18 +01:00
joschiwald 03082db810 Core/Spells: Glyph of Desperation/Pain Suppression has been removed 2017-12-26 12:59:36 +01:00
Shauren b54d1ab35f Core/Crypto: Remove unused declaration 2017-12-26 01:42:38 +01:00
Shauren 130d3eb0ae Core/Crypto: Add const_cast hack to fix linux build with openssl 2017-12-26 01:37:02 +01:00
Treeston 60c756d3f8 Scripts/Various: Bringing nullptr civilization to the savages of master branch. Merry Christmas.
(2a08556 follow-up)
2017-12-26 01:33:50 +01:00
Treeston 2a08556273 Core/Unit: For convenience, explicitly redirect CastSpell with nullptr as first argument to the Unit* overloads. No more ->CastSpell((Unit*)nullptr, ...) all over the place!
(cherry picked from commits c7896f31026d6bdee189226680705dd7965b2039 and 40c78cac4c430a97386b44b994ec85fbaeda8821)
2017-12-26 01:10:26 +01:00
Shauren 2628daadeb Nopch build fix2 2017-12-25 21:51:20 +01:00
Shauren 6a4c40126d Nopch build fix 2017-12-25 21:47:21 +01:00
Shauren e161769c4f Build fix 2017-12-25 21:45:07 +01:00
Shauren 61ca3d6235 Core/Crypto: Refactor RSA encryption to use openssl functions instead of doing it manually 2017-12-25 21:41:34 +01:00
joschiwald b12878cb5a Fixed build 2017-12-25 11:18:04 +01:00
ariel- 7bb6897a3c Core/Spell: move attribute helpers to spellInfo
- Renamed CheckEffectExecuteData to AssertEffectExecuteData and made const, better reflects its purpose
- Added missing attribute check to IsNextMeleeSwingSpell
- Reworked SPELL_ATTR4_CAST_ONLY_IN_OUTLAND attr check (researched behavior)

(cherry picked from commit 5cb8409f1ee57e8dccb63cd11ce241b7a853379c)
2017-12-25 10:42:20 +01:00
Keader 2acb7dae1b Core/Scripts: Fixed a typo and removed randtime of Shade of Akama events (#18231)
(cherry picked from commit c4dd6d167601390ad29c0241a30872bd0b5afa5e)
2017-12-25 10:30:08 +01:00
ariel- 8aa7b85ed2 Core/SpellMgr: overwrite dbc range for Unleashed Souls
Closes #17968

By sirikfoll

(cherry picked from commit 70a867531d6c6dba13dcd56a44db855b39aa6471)
2017-12-25 10:23:00 +01:00
joschiwald 4435cb82d0 Update 2017_12_24_00_world.sql 2017-12-24 19:21:38 +01:00
joschiwald 13726438da Core/Spells: Moved applying exclusive aura spells to scripts 2017-12-24 18:31:29 +01:00
joschiwald 439ac5756c Core/Spells: Implemented spells causing Forbearance
Ref #20937
2017-12-23 13:45:50 +01:00
joschiwald 73bc074cfc Update 2017_12_23_00_world.sql 2017-12-23 10:21:55 +01:00
Naios 18ab645781 Build: Re-enable the /Zm workaround for MSVC (cotire version)
* Thanks Spec for reporting this issue
* See https://community.trinitycore.org/topic/120-compile-or-cmake-problems/?do=findComment&comment=83912
* Ref 697b4dbef20

(cherry picked from commit d3d003d69e91fb9b019a06b0402acebae5d6d250)
2017-12-23 02:17:19 +01:00
Aussiewoolf 5296c0063e DB/Quest: Have You Seen Anything Weird Out There?
- add missing quest_offer_reward texts
- add missing quest_template_addon entries
- link quest 24993 as reward from 25039

Closes #21072
2017-12-23 01:06:56 +01:00