Commit Graph
685 Commits
Author SHA1 Message Date
Shauren c3dcbe04dc Core/Spells: Assign spell effect handles for new apply aura effects 2020-06-22 11:04:57 +02:00
Shauren fce9fca900 Core/Spells: Implemented new target types
* TARGET_UNIT_TARGET_ALLY_OR_RAID
* TARGET_UNIT_CASTER_AND_SUMMONS
* TARGET_UNIT_AREA_THREAT_LIST
* TARGET_UNIT_AREA_TAP_LIST
* TARGET_DEST_CASTER_GROUND
* TARGET_DEST_SUMMONER
* TARGET_DEST_TARGET_ALLY

Closes #18558
Closes #18867
Closes #24295
2020-06-21 15:59:43 +02:00
ariel- e2bc8c5383 Core/Scripts: improvements on the Thorim script
Improvements done to initial work by joschiwald:

- Fixed stormhammer casting and visuals
- Fixed spell credits
- Implemented removal of Impale when HP is higher than 90%
- Corrected faction templates for the pre combat creatures
- Implemeted Leap on the arena adds (thanks to joschiwald for implementing conditions)
- Scripted lighting charge using AuraScript periodic
- Fixed timings
- Corrections on the hallway encounters (added knockback immunity to minibosses too)
- Fixed multiple blizzards issue
- Lever will now reset properly, should players fail to get inside. This allows the door to be opened more than once during the combat
- Corrections in the outro event
- Implemented paralytic field traps on the hallway.
- Implemented Ancient Gate of the Keepers opening.
- Changed blizzard bunny targetting to conditions entirely.
- Removed obsolete scripts
- Standards: delete spell script names by ScriptName instead of spell_id
- Swapped factions for pre-adds (alliance should get horde trash and vs)
- Fixed Leap setting home position for adds
- Removed a bunch of magic numbers
- Runic Colossus should finish current Runic Explosion before beginning to attack
- Fixed UpdateAI logic to put it in line with other scripts (ie don't stop casts)

Special thanks to:
- chaodhib for the blizzard trigger waypoints and investigation on spell radius
- Malcrom for creating the Conditions Creator :P

Closes #15008
Closes #17072

(cherry picked from commit 4a69f5bda58fe3af5ec6000e0ec10a3b0732969a)
2020-06-14 23:49:01 +02:00
Shauren c7306439e7 Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower 2020-06-12 01:29:18 +02:00
Shauren 4d69cc1c56 Core/Misc: GCC build and warning fixes 2020-05-21 22:15:58 +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- 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- 52e00746cf Core/Spell: fixed SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT to actually check effects
- This commit enables stack rule 3 to be properly used to fix auras that should be active but only one providing effects, even if the spell has multiple auras

Closes #19454

(cherry picked from commit 9900899dd9d7f685a1c862bc75e7614e3f0a3ce6)
2020-04-27 14:31:21 +02:00
Ovah 030d942efe Scripts/Antorus: implement Garothi Worldbreaker encounter for normal and heroic difficulty
* added base script support for the encounter for normal and heroic difficulty
* added instance script for Antorus the Burning Throne
* added sniffed template data for involved gameobjects
* added encounter related spawns to Antorus the Burning Throne
* added instance encounter entry for Garothi Worldbreaker
2020-04-25 19:04:31 +02:00
Gustavo 6f523b4fb6 Core/Scripts: minor fixes in boss_the_lich_king (#19311)
Closes #4427
Closes #7091

(cherry picked from commit 2792046dc7a229180d27dfdc4ce37ccfb84c8a27)
2020-04-24 17:18:49 +02:00
ariel- e44d0c8873 Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle
Closes #17234

(cherry picked from commit 4096b02a560499d2cb2f40c67ac0b30ed4c48ffd)
2020-04-24 17:18:49 +02:00
ariel- 6098c4549c Core/Spell: add assert checks on SpellMgr::CheckSpellGroupStackRules
Ref #19319

(cherry picked from commit 36bb4cabae01c591cf6151bae2f65a1f578ed9f3)
2020-04-24 17:18:48 +02:00
Keader f3d946cee9 Core/Spell: Fixed Val'kyr Target Search exploit
Closes #16347
by ariel-

(cherry picked from commit 28b955bd25dce9c153ba4e1d16d70778d41d5d9b)
2020-04-24 17:18:46 +02:00
Shauren 361946419e Core/Items: Fixed learning 2nd and 3rd copies of battle pets from items (not caged pets) 2020-04-08 13:36:59 +02:00
Shauren 3700e0ef5d Core/Misc: Defined new summon properties titles 2020-04-07 17:27:40 +02:00
Shauren 3cc50e69f1 Core/Players: Fixed racemasks usage for new races 2020-03-30 19:06:11 +02:00
Aokromes b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
Shauren 04ab611111 Core/Spells: Fixed calling spellhit script hooks on launch when spell hits both caster and target with different effects 2019-08-31 11:11:23 +02:00
ariel- fa46e7c406 Core/Spells: fix some db errors
(cherrypicked from ebba8dcba87190cfdef55bd896a11d2d234cd754)
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- beda1c2466 Core/Scripts: Thrusting Hodir's Spear
- Everything is sniffed, enjoy this hell of a quest!

Closes #12808

(cherrypicked from 01f5befcec19cbf519d6222f514f70ba9704f0ea)
2019-08-17 20:04:14 +02:00
ariel- 420f2e8ec2 Core/Spells: refactor spell_enchant_proc_data table
- Renamed fields to mimic those in spell_proc
- Added Enchant proc attributes for controlling specific enchant features

Ref #7789

(cherrypicked from f609e7a08b3b4d2d9642e5ec252e1eedad836f0f)
2019-08-17 20:04:14 +02:00
ariel- 77fc6ceea8 Core/Spell: Added the possibility to explicitly disable auraEffect procs using attributes
- Renamed IsProcTriggeredOnEvent to GetProcEffectMask, since long ago this function returned bool, new name should better reflect its use

(cherrypicked from e7ccd8ea3fccad92af3553f544aad49be5d1a9ed)
2019-08-17 20:04:14 +02:00
xinef1 ca26c33145 Implemented binary resistances and some more (#18933)
- Fixed possible exploit with tamed pets having template immunities
- Implemented binary resistances
- Corrected resistances calculations
- Pets properly inherit players spell penetration
- Fixed doubled block calculation for damaging melee spells
- Auras removing snare effects will only remove the snaring component
- Shapeshifting will properly remove movement impairing auras only and not crowd control (dragon's breath)
- Immunities are properly checked versus all schools appearing in spell, unit is immune only if immune to all schools
- Spells with melee and magic school mask should compare armor reduction with resistances and select smaller reduction
- Demonic Circle: Teleport no longer removes root effects

(cherrypicked from 93746e8c4a79c8256cd4896533315683f143508c)
2019-07-21 21:06:54 +02:00
xinef1 3f7fe6f8a5 Core/Spells: Remade trajectory target selection (#19048)
* Remade trajectory target selection
* Added possibility to apply conditions to trajectory spells
* Properly recalculate delay time if CMSG_UPDATE_PROJECTILE_POSITION is received

(cherrypicked from c6060dd0c511ddad3cb1f0423aa9ccf2de7aedec)
2019-06-15 18:41:09 +02:00
vincent-michael 5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Shauren f94deace76 Merge branch 'bfa' 2018-12-09 14:45:03 +01:00
ariel- 49cd81a1c9 Core/Spell: modified HitMask for new default procs
(cherry-picked from ad6912f0d578cd94beb2ea6f94b63ec83b605e82)
2018-12-09 14:18:42 +01:00
ariel- 01691e5d3b Core/Spell: add more aura types to default procs
Ref #18542

(cherry-picked from bff36a81be74c8179cfbfb18148a25d6c2a37495)
2018-12-09 14:18:42 +01:00
Keader 0b715ffc24 Core/Spell: Fixed range issues with some quest spells
(cherry-picked from 6f7310a25993f06676ae91f4d80071d5ce576978)
2018-12-09 14:18:42 +01:00
Shauren dd356ea04c Core/Misc: Extended racemasks in db to uint64 2018-09-26 23:08:23 +02:00
Shauren 573dd01c6c Core/Spells: Updated spell effect value calculation 2018-09-17 23:30:58 +02:00
Mihapro 4c348ea5f8 Core/Spells: Fixed travel form 2018-07-22 19:11:34 +02:00
DoctorKraft 8ca6a20e73 Core/Spells: Fix display for Shaman totems (#21848) 2018-04-24 00:44:59 +03:00
Keader 36910585c9 Core/Scripts: Illidari Council Rewrite (#18546)
Thanks to Sirikfoll, Krudor and Offl for all help

(cherry picked from commit 5af1fa22733c64e97f60967b36ea970a355d0598)
2018-03-18 00:19:49 +01:00
ariel- 395407eb02 Core/Spell: fix one spell range issue
(cherry picked from commit 63a4a94f5a66bde0d843dcdc74c4c1e1d3bba306)
2018-03-18 00:19:44 +01:00
Shauren 007b5a68c5 Core/DataStores: Fixed db2 structures after 7.3.5 2018-03-12 23:11:49 +01:00
Keader f80d80401b Core/Scripts: Fixed Suppresser behavior in Valithria Dreamwalker encounter
Closes #18530
* Fixed range issue
* Fixed weave spawn when Summon Timmer Suppresser(70912) is casted
* Fixed spawn count
(cherry picked from commit dbd567799f47cea46cdf4f1fb3dc61960fd283ab)
2018-03-12 16:43:14 +01:00
Keader 4c8f4cb372 Core/Scripts: Rewrite Magtheridons Lair (#18330) 2018-03-12 16:39:32 +01:00
ariel- 301a0e8681 Core/SpellMgr: added a startup error for possibly unhandled procs
(cherry picked from commit 3d5c1b83b15cfc9f73888eb525c64323266c1fd4)
2018-03-12 11:17:56 +01:00
Shauren 75603fe1a0 Core/DataStores: Updated db2 structures to 7.3.5.25996 2018-02-18 16:33:50 +01:00
funjoker c4bf996c7d Core/Spells: Allow skipping automatic removal of auras from spell_area when condition is no longer met (mostly used for cosmetic cutscenes after quest completion) (#21317) 2018-01-28 19:33:33 +01:00
ariel- 8cb118009e Core/Spell: restore old proc system behaviour on auras self proc.
- Use Spell::m_triggeredByAuraSpell and compare against trigger aura, it requires scripts to set triggeredByAura parameter.
- Fixed existing scripts lacking it

DB/Spell: Anger Capacitor (Tiny Abomination in a Jar) proc

Closes #18269

(cherry picked from commit 5b56c94e6d9510fb9cd835216dde7181371a2454)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Spells/Auras/SpellAuras.cpp
#	src/server/game/Spells/Spell.cpp
#	src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
#	src/server/scripts/Pet/pet_hunter.cpp
#	src/server/scripts/Spells/spell_dk.cpp
#	src/server/scripts/Spells/spell_druid.cpp
#	src/server/scripts/Spells/spell_hunter.cpp
#	src/server/scripts/Spells/spell_item.cpp
#	src/server/scripts/Spells/spell_mage.cpp
#	src/server/scripts/Spells/spell_paladin.cpp
#	src/server/scripts/Spells/spell_priest.cpp
#	src/server/scripts/Spells/spell_rogue.cpp
#	src/server/scripts/Spells/spell_shaman.cpp
#	src/server/scripts/Spells/spell_warlock.cpp
#	src/server/scripts/Spells/spell_warrior.cpp
2018-01-13 16:38:07 +01:00
vincent-michael 7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
joschiwald 5465b4f46e Core/Spells: Fixed proc cooldown 2017-12-26 19:52:09 +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
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
Shauren e86a2c439a Core/Auras: Implemented using all aura interrupt flag fields 2017-12-17 16:45:50 +01:00