Commit Graph

315 Commits

Author SHA1 Message Date
hondacrx 76b30d4346 Core/Spells: Fixed two more crashes. 2021-03-16 15:44:42 -04:00
hondacrx 718bbfc1b6 Core/Spells: Check if serverside spells don't overwrite db2 spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/deed58f080fe11cfdeb7623b4ed577d062456702)
2021-03-15 16:30:47 -04:00
hondacrx 98088d1d35 Core/Spells: Restore serverside spells fuinctionality
Port From (https://github.com/TrinityCore/TrinityCore/commit/71112d4d169ef192f8c3c9eb1303bdd880336eaa)
2021-03-15 16:29:10 -04:00
hondacrx cee1fbe0d2 Core/Auras: Remove m_effIndex member of AuraEffect and always take it from SpellEffectInfo
Port From (https://github.com/TrinityCore/TrinityCore/commit/efdca47aff354079bc73d248e022c2e914d94e7b)
2021-03-15 15:37:07 -04:00
hondacrx c521848465 Core/Spells: Fixes a crash when powercosts doesnt contain the powertype. 2021-03-15 01:22:23 -04:00
hondacrx 5eea1fec98 Core/Auras: Convert most rules from Aura::CanBeSaved to a custom spell attribute
Port From (https://github.com/TrinityCore/TrinityCore/commit/b4aa698acb88e1a74bc22d97279148a567b88cad)
2021-03-08 14:26:51 -05:00
hondacrx c54c27f831 Core/Auras: Don't save druid various flight forms to db
Port From (https://github.com/TrinityCore/TrinityCore/commit/16f95f9d32c4e4cc7b7eceaefc99ef5c4f854f53)
2021-03-08 14:21:46 -05:00
hondacrx ee97dc7b32 Core/Spells Handle auras 328 & 396 (SPELL_AURA_TRIGGER_SPELL_ON_POWER_*)
Port From (https://github.com/TrinityCore/TrinityCore/commit/56e9560661adca81fc1e9a297cb6823cf7a6cb22)
2021-03-08 13:50:15 -05:00
hondacrx 7b5c65244c Core/Spells: Implemented SPELL_AURA_ALLOW_TALENT_SWAPPING
Port From (https://github.com/TrinityCore/TrinityCore/commit/49b47047b809ce654661df595b14a5f8c1f01c8c)
2021-03-08 13:36:49 -05:00
hondacrx 866b81af86 Core/Movement: Allow entering water from flying mounts and druid flight form
Port From (https://github.com/TrinityCore/TrinityCore/commit/a37eb18008100f3b351c1046effdcea911cf4071)
2021-03-04 21:53:18 -05:00
hondacrx 9293b4ee17 Scripts/Spells: Fixed various paladin spell scripts and removed outdated ones
Port From (https://github.com/TrinityCore/TrinityCore/commit/1086007f98c8d120f353650d7567d82f6b9aa0f8)
2021-03-04 21:09:05 -05:00
hondacrx ef73fb171b Core/Spells: Moved power cost RequiredAuraSpellID condition checking to make sure all overloads of SpellInfo.CalcPowerCost take it into account
Port From (https://github.com/TrinityCore/TrinityCore/commit/ea63cd882c9f1438ab75036420a2bd3c18a3ecb5)
2021-03-04 20:39:05 -05:00
hondacrx f0bbedddee Core/Spells: Add Spell.HasPowerTypeCost to check which power types a spell uses
Port From (https://github.com/TrinityCore/TrinityCore/commit/0960308cfcfab740456b070901bed92b4d6fb4a7)
2021-03-04 20:32:07 -05:00
hondacrx 43f517063f Core/DB2: Fix loading db2, hotfix db has one record with -1 for procCharges 2021-03-04 16:35:29 -05:00
hondacrx 655051c3f9 Core/Spells: Implemented SPELL_EFFECT_PLAY_SCENE_SCRIPT_PACKAGE and SPELL_EFFECT_CREATE_PRIVATE_CONVERSATION
Port From (https://github.com/TrinityCore/TrinityCore/commit/34768c5b440a03a817a36007e82c0e4859120235)
2021-03-04 16:08:51 -05:00
hondacrx c4fce8e60a Core/Spells: Updated spell effect type definitions to match latest client version
Port From (https://github.com/TrinityCore/TrinityCore/commit/a05fc3ded598f56d21d23e3efb218fa5381f45ab)
2021-03-04 16:06:06 -05:00
hondacrx 166da57c6b Core/Spells: Fixed calculation spell optional power cost when any modifiers are applied
Port From (https://github.com/TrinityCore/TrinityCore/commit/0e3666bfbc88bdcc9344dd3ebcfed0f205d122b2)
2021-03-04 15:26:57 -05:00
hondacrx 923def9f4a Core/Spells: Refactor Player::ApplySpellMod to take SpellInfo argument instead of just spell id
Port From (https://github.com/TrinityCore/TrinityCore/commit/624881bef5c90a91e4c59e5bf404d8775c2ca55d)
2021-03-04 14:43:39 -05:00
hondacrx 42f411119a Core/Spells: Implemented spell effect 202 SPELL_EFFECT_APPLY_AREA_AURA_SUMMONS
Port From (https://github.com/TrinityCore/TrinityCore/commit/ad479e8fa0de6659815e956ee5f2b594957a7d1d)
2021-03-04 14:21:45 -05:00
hondacrx f05dc39449 Spells/Auras: Dont save SPELL_AURA_BATTLEGROUND_PLAYER_POSITION auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/2380fc32dd5383b2e385a12e7e76ea0116dc9035)
2021-03-04 14:14:45 -05:00
hondacrx d7d4722d4b Core/Auras: Implemented SPELL_AURA_PHASE_ALWAYS_VISIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/c9344c145ad1f981492c35d4aad7ca7a60e9f8f2)
2021-03-04 12:18:36 -05:00
hondacrx 0fdab8635d Misc fixes 2021-03-04 12:00:58 -05:00
hondacrx 64bafe8d73 Misc cleanups 2021-03-04 11:47:12 -05:00
hondacrx ef247f9c1a Core/Spells: Fixes low level creatures dealing really high Damage. 2021-03-01 11:04:29 -05:00
hondacrx b413849c4d Fixed missing effect index being a uint and not a byte anymore, caused spells with more then 8 effects to not trigger them. 2021-02-28 00:25:48 -05:00
hondacrx fc3ecd460a Misc fixes and DB updates 2021-02-24 19:00:12 -05:00
hondacrx ac4e96bad7 Core/Auras: Improve PROC_ATTR_USE_STACKS_FOR_CHARGES implementation to give stacks priority over charges if both are present in spell data
Port From (https://github.com/TrinityCore/TrinityCore/commit/8740c2f85fe28a9396383b313f8fa2a5210e3200)
2021-02-24 18:58:15 -05:00
hondacrx 5e5cf97963 Core/Spells: Corrected the spell id source used in the learn spells map when loading SpellLearnSpell.db2 data
Port From (https://github.com/TrinityCore/TrinityCore/commit/9e948ff4bd5d2f584cde19d851bbbf1bb93b51d4)
2021-02-24 18:55:39 -05:00
hondacrx d1485ad482 Core/Spells: Fixed spells using SPELL_EFFECT_POWER_BURN not working when combined with other effect types that hit other units and power burn hits caster
Port From (https://github.com/TrinityCore/TrinityCore/commit/23aa13257a0af0143651f48ac3af65435ba9f346)
2021-02-24 18:49:18 -05:00
hondacrx 8e1a3f066f Core/Datastorage: Dont clear SpellNameStorage table, we use it else where. 2021-02-24 10:13:23 -05:00
hondacrx b874d54198 Fix typo. 2021-02-22 21:09:19 -05:00
hondacrx 4ed84e7ae4 Core/AuraEffect: Fix crash when missing a auraeffect handler. 2021-02-22 21:08:07 -05:00
hondacrx d1c0aa114a Core/Spells: Prevent spell power costs from changing their sign (positive cost cannot become negative)
Port From (https://github.com/TrinityCore/TrinityCore/commit/01a3be276f4076762290e985d10d5c4ab1176ce0)
2021-02-22 16:07:10 -05:00
hondacrx f25af46c8f Core/Auras: implement mana cost modification aura
Port From (https://github.com/TrinityCore/TrinityCore/commit/a76c08843fc1695241b7246c4014322ee07a6453)
2021-02-22 16:06:13 -05:00
hondacrx e74d30024f Core/Auras: Implemented new spell modifier type to change aura stack size on apply
Port From (https://github.com/TrinityCore/TrinityCore/commit/51a9d2a9c20f36f5343049a340663601c1c1165b)
2021-02-22 16:01:43 -05:00
hondacrx dd425437b8 Core/Auras: Implemented new spell modifier type to change max aura stack size
Port From (https://github.com/TrinityCore/TrinityCore/commit/b4b13e7b38619b062d209c3547532384623a56c1)
2021-02-22 15:56:54 -05:00
hondacrx cb1afc82b2 Core/Auras: Implemented SPELL_AURA_DISABLE_ATTACKING_EXCEPT_ABILITIES
Port From (https://github.com/TrinityCore/TrinityCore/commit/ac1ef5efbe0a8c4cf25f4bdf154d5b4e86827c06)
2021-02-22 15:52:37 -05:00
hondacrx 04f2703e70 Core/Auras: Reimplement SPELL_AURA_DISABLE_CASTING_EXCEPT_ABILITIES to properly allow casting listed spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/1b8ef46808c44e68f213768c6a64ccc0048f3d65)
2021-02-22 15:50:50 -05:00
hondacrx 16d64a1695 Core/Auras: Implemented SPELL_AURA_LEARN_SPELL
Port From (https://github.com/TrinityCore/TrinityCore/commit/d2a995368459b28af0309292587a39f95fbf754c)
2021-02-22 15:42:51 -05:00
hondacrx d21b61baba Core/Auras: Implemented SPELL_AURA_SET_FFA_PVP
Port From (https://github.com/TrinityCore/TrinityCore/commit/c57b012ee4e75dfb4c3d29b6c5f2308ae559aec4)
2021-02-22 15:34:37 -05:00
hondacrx f7693b7e53 Core/Auras: Implemented SPELL_AURA_MOD_INCREASE_HEALTH_PERCENT2
Port From (https://github.com/TrinityCore/TrinityCore/commit/4f38650810261ed6ad4c5bd2e6c25ffe1dde4c38)
2021-02-22 15:30:33 -05:00
hondacrx f15cc130fa Core/Auras: Implemented SPELL_AURA_PERIODIC_WEAPON_PERCENT_DAMAGE
Port From (https://github.com/TrinityCore/TrinityCore/commit/5ed75bb2d3fdc5bd2ee4dddb748db291fe3b1541)
2021-02-22 15:29:14 -05:00
hondacrx 762090efb1 Core/Auras: Implemented SPELL_AURA_MOD_PERIODIC_DAMAGE_TAKEN
Port From (https://github.com/TrinityCore/TrinityCore/commit/4ee565b2c85a442069ee7a611378f30f066de873)
2021-02-22 15:10:45 -05:00
hondacrx 7ae358bd71 Core/Auras: Rename many old aura types to their new meaning
Port From (https://github.com/TrinityCore/TrinityCore/commit/bd7c714c97beb04eb815b0aa175badfb6933ccf1)
2021-02-22 15:05:41 -05:00
hondacrx d2552107b6 Core/Auras: Refactor logic determining which spell aura type values need to be sent
Port From (https://github.com/TrinityCore/TrinityCore/commit/512931646ada2fab3796d362bb1955d7494f06ff)
2021-02-21 21:49:50 -05:00
hondacrx baa44cc4ee Core/Auras: Do not warn about nonexisting proc spells when spell id is 0 and aura is a dummy
Port From (https://github.com/TrinityCore/TrinityCore/commit/411631743adb6438dc7690e5be3a1430080384ec)
2021-02-21 21:38:01 -05:00
hondacrx 7080de0cac Core/Auras: Implemented new spell proc attribute PROC_ATTR_USE_STACKS_FOR_CHARGES to drop stacks instead of charges
Port From (https://github.com/TrinityCore/TrinityCore/commit/54c5cc97f53dd456a4496d23c0b3375f9280639a)
2021-02-21 21:36:09 -05:00
hondacrx 22100aa2f2 Core/UpdateFields: Fixes areatriggers from spells being really small. 2021-02-21 13:56:25 -05:00
hondacrx 470792f77f Core/SpellHistory: Fixes a crash when using .cheat cooldown. 2021-02-19 15:47:33 -05:00
hondacrx 091f8fb881 Spell: Remove a phase hack for The Eye of Acherus
Port From (https://github.com/TrinityCore/TrinityCore/commit/33279199d43211cbacee20dac90a4467b7cd3c35)
2021-02-18 12:47:42 -05:00