Commit Graph
23603 Commits
Author SHA1 Message Date
joschiwald 78ba1d76dd Core/Spells: Removed obsolete spell fixes 2018-01-03 18:10:47 +01:00
Mihapro 8199eef81c Core/Misc: Added helper function Unit::SetFullPower
* Also renamed Unit::getPowerType and Unit::setPowerType to follow style guidelines

Ref #20981
2018-01-03 16:39:32 +01:00
Shauren d9639e8d1f Nopch fix 2 2018-01-02 15:03:12 +01:00
Shauren 379eadcff6 Nopch fix 2018-01-02 14:08:35 +01:00
Shauren ea6de0b565 Core/BattlePets: Misc fixes
* Fixed caged pet item chat message
* BattlePetMgr optimizations: removed copying data all over the place
* Fixed gaining two pets when learned from item for the first time
* Fixed dismiss button
2018-01-02 14:04:09 +01:00
vincent-michael 7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Shauren 66621a85e9 Core/Quests: Implemented player choice rewards 2017-12-31 23:22:55 +01:00
Traesh 89c91c271b Core/Quests: Implemented player choices
* Implemented SPELL_EFFECT_LAUNCH_QUEST_CHOICE
* Script hook for player choices
2017-12-31 23:22:55 +01:00
Shauren 5dd686c080 Core/Locales: Optimize locale loading - move the strings 2017-12-31 16:01:06 +01:00
joschiwald dc29473120 Core/RBAC: Fixed permissions conflict with 3.3.5 branch 2017-12-30 23:15:15 +01:00
joschiwald 299fad57fc Core/Misc: Fixed type mismatch 2017-12-30 23:09:45 +01:00
ariel- 5bcf14cdb8 Core/Unit: damage immune improvements (9f5df023b746d324588f175e264c62205b69e165 follow up)
- Handling checked in sniffs: Spell 63710 Void Barrier vs 49143 Frost Strike
  * Send spell miss immune only if spell consists of damage effects
- Checked with 348 Immolate:
  * No packets sent if damage immune, aura is applied normally

Also... who the fuck uses 0 to compare against pointers

(cherry picked from commit ca1c4525c7da320da2c0a55bfd803879e3cf60b2)

Core/Unit: fix build

Ctrl-S failure
(cherry picked from commit f3bdd705c0e3ab28585406ae8e08da44a09b14df)
2017-12-30 22:56:48 +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 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 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
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