Commit Graph

846 Commits

Author SHA1 Message Date
Keader
961bc9d829 Scripts/Spells: Fixed a console error inspell_dru_lifebloom
Closes #23192
2019-04-21 11:01:59 -03:00
Sorikoff
2cfaeb1400 Scripts/Spells: Migrate Some Scripted Spells to Scripts (#23185)
* Migrate spells to scripts

* Simplify code

* I need to sleep

* Update chapter1.cpp

* Use actual damage

* No need in null check here
2019-04-16 09:49:39 +02:00
Gustavo
cc3293c002 Core/Scripts: Fix Blood summon position (#23088)
* Core/Scripts: Fix Blood summon position

Updates #13162
2019-04-04 00:30:25 -03:00
Gustavo
50f122de77 Core/Misc: Warning fixes (/W4) (#23149)
* Core/Misc: Warning fixes (/W4)
2019-04-03 23:36:26 -03:00
PolarCookie
ec3cb05d7f Core/Spell: SpellAura Redux (#22794)
* typo and correction

* spell aura no longer shared between targets

_spellAura isolated

* SPELL_AURA_CONTROL_VEHICLE is not strictly single target spell

Steam Tank Control and Wyrmrest Commander

units can reseat themselves again

* Rename 9999_99_99_99_world.sql to 2019_03_08_00_world.sql
2019-03-08 08:34:16 +01:00
Killyana
e5470ab1ee Spell/Script: Specify a target for Azure Dragon: On Death Force Cast Wyrmrest Defender to Whisper to Controller - Random 2019-03-07 17:37:03 +01:00
Keader
990ad000f8 Spell/Script: Freezing Circle
Closes #11312
See the original issue before cherry pick
2019-03-02 19:57:38 +01:00
DanVS
054914a83b Glyph of Holy Light (#22198) 2019-02-23 20:22:37 +01:00
Keader
c8dfab7761 Scripts/Spells: Fixed Demonic Pact not increasing spell healing
Closes #23019
2019-02-22 10:25:11 -03:00
jackpoz
78f70cbff2 Core/Misc: Fix static analysis issues
Fix static analysis issues reported by Coverity
2019-02-16 13:40:39 +01:00
ccrs
954fd2639a Core/Unit: rename & cleanup GetCreatePowers
it hurted my eyes too much
2019-01-14 07:07:06 +01:00
Giacomo Pozzoni
8f9654d817 3.3.5 UnitAI (#22911)
* Core/AI: Revamp how UnitAI changes are applied

Revamp how UnitAI changes are applied by storing current AI in a variable and all previous AIs plus current in a stack.
The callers can push/pop AIs on the stack that will take effect only in next Unit::Update() call.
The current AI will be a valid object for the whole duration of Unit::Update() and until next Unit::Update() call.

* Core/AI: Apply new AI change code

* Core/AI: Fix build

* Core/AI: Fix crash on Creature::AIM_Create()

* Core/AI: Fix crash

* Core/AI: Restore ASSERT

* Core/AI: Fix UnitAI not being popped properly when restoring a charmed AI
2019-01-13 20:25:02 +01:00
Killyana
fb28083b3b DB/Creature: Wrath Corruptor
Thanks to Keader for the spell_script
Original sql by Tobschinski c8f1753834
2019-01-12 00:11:59 +01:00
Giacomo Pozzoni
545bee0496 Scripts/Spells: Fix infinite loop in Power Word Shield (#22918)
Fix infinite loop in Power Word Shield triggering back and forth the damage spell between 2 players, both with Power Word Shield
2019-01-10 19:21:20 +01:00
Rynem Storm
a057d26f20 DB/Spell: fix mistake in Blood Draining's CheckProc and remove Attack Power scaling (#22862) 2019-01-10 14:11:07 +01:00
DanVS
8051ff13df Core/Scripts: Move some spells to scripts (#22332) 2019-01-05 01:54:33 +01:00
PolarCookie
fb19f7be1f That's Abominable for the 3 other quests, and knockbacks for all. (#22127) 2019-01-05 01:43:53 +01:00
Treeston
fcfcb0eb6f Happy New Year, folks. It's 2019! 2019-01-01 15:45:25 +01:00
Keader
87d6f62ba6 Scripts/Spells: Fixed wrong change in Drain Mana removing fear/poly effects
Update: #20234
Followup: a6673f6aa7
More Info: https://github.com/TrinityCore/TrinityCore/issues/20234#issuecomment-436970730
2018-11-08 09:19:33 -03:00
PolarCookie
93cb86b683 Spell/Script: Curse of agony (#22728)
* CoA now as spellscript

* clean up drain soul

* keader

* keader2

* Rename 9999_99_99_99.sql to 2018_11_04_00_world.sql
2018-11-04 12:40:09 +01:00
PolarCookie
d13bcf36f1 [3.3.5] Scripts/Spells: Life Tap (#22638)
Closes #17559
2018-10-15 08:35:45 -03:00
Treeston
bb953328ee Scripts/Spells: Check range to fire totem when casting Fire Nova. Closes #22303. 2018-08-29 13:50:58 +02:00
Treeston
d4ef2529e9 Core/Unit: Store charmer and charmed pointers on Unit directly, no more map lookups for Unit::GetCharmer and Unit::GetCharmed 2018-08-25 00:44:33 +02:00
Treeston
042f5515e4 Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a crapton of booleans 2018-08-23 16:34:42 +02:00
DanVS
ba9943d8a4 Core/Entities: Ethereal Soul-Trader (#22050) 2018-07-25 15:35:03 +02:00
Keader
289b2dff33 Scripts/Spells: Fixed Berserk rank 2018-06-05 08:46:52 -03:00
DanVS
3bd9337d9f Core/Spells: Reset Mangle cooldown in Berserk (#22000) 2018-06-04 22:01:27 -03:00
Gildor
b5aeca6c93 Spells/Warlock: Corrected spell id of Shadow Ward (#21896) 2018-05-01 11:57:28 +02:00
vincent-michael
5f897589f9 Core/Spells: Fixed non pch build 2018-04-07 21:32:10 +02:00
Treeston
74defba5a7 Core/Movement: Fix a potential crash on newly created pets. Closes #21791. 2018-04-07 17:23:26 +02:00
Treeston
4fc9b2cc94 Scripts/Paladin: Fix Righteous Defense. Closes #21765. 2018-04-07 01:38:59 +02:00
DanVS
c2f1657988 [3.3.5] Scripts/Spells: handle auras on unequipping scripted items (#21643)
Ref: #20415
2018-03-31 09:13:33 -03:00
ariel-
6eb122792c Scripts/Spells: fix Seaforium Blast script crash
Closes #21663
2018-03-18 16:08:36 -03:00
sirikfoll
e7e46b2a82 Scripts/Spells: Quest King of the Mountain
Added missing jump jets and battle standard visuals
Added allowed area conditions for the vehicle
Fixed Jumpbot's attack spell (thanks @keader for fixing the proc)
2018-03-10 13:31:49 -03:00
ariel-
1a2c6f6545 Scripts/Spells: fix Hypothermia 2018-03-10 03:55:35 -03:00
ariel-
bd3530dd1f Core/Spells: move m_preCastSpell logic to scripts
- Bad name because it was actaully executed after effects
2018-03-10 00:55:24 -03:00
ariel-
93eda20d5c Core/Spells: Fix periodic rolling adding bonuses twice
Calculation is now done in CalculateAmount
2018-03-09 14:41:28 -03:00
ariel-
45c5e1b9d6 Core/Spells: rework part 5: GameObject casting
Closes #21330
Closes #18885
Ref #18752
2018-03-09 14:41:28 -03:00
ariel-
6e0b9a7916 Core/Creatures: port power type updates from master branch
Core/Misc: Added helper function Unit::SetFullPower
Cherry-picked from 8199eef81c

Core/Creatures: Updated power type handling (#20981)
Cherry-picked from 16a7a414ab
2018-03-07 03:34:45 -03:00
ariel-
1074a9b053 Core/Scripts: remove hack that caused aura to not be applied and saved twice on owned auras, causing an error on save
- This is handled by group stack rules actually
- Also reset removed aura counter when cleaning removed auras

Closes #21486
2018-02-23 13:16:42 -03:00
ariel-
3753ec5647 Core/Scripts: apply resilience on Vampiric Touch and Unstable Affliction dispel effect
- Spell with SPELL_ATTR4_FIXED_DAMAGE won't do it by itself to avoid applying resilience twice, but because those are triggered from a periodic aura, those apply resilience on tick, not saved to amount.
- This is one of the cases where you have to call Unit::SpellDamageBonusTaken directly

Closes #21393
2018-02-22 02:37:00 -03:00
ariel-
a6673f6aa7 Core/Scripts: implement Drain Mana breaking some auras on hit
Updates #20234
2018-02-17 17:46:38 -03:00
ariel-
7dc78d8e3f Core/Scripts: implemented Fungal Decay & Tail Sting
Refs #18542
2018-02-16 00:54:53 -03:00
ariel-
ab1aa8e384 Core/Scripts: fix Glyph of Renew interaction with Empowered Renew
- Get actual ticks from aura, because glyph reduces them by 1
2018-02-16 00:54:53 -03:00
ariel-
1edd81f9d5 Core/Scripts: fix Healing Stream Totem coefficient and animation 2018-02-14 22:07:06 -03:00
ariel-
a93d74c8df Core/Scripts: fix nopch 2018-02-14 16:36:56 -03:00
ariel-
df5afca278 Core/Scripts: implemented Seed of Corruption scaling damage tolerance 2018-02-14 05:58:56 -03:00
Treeston
ac8b9be5d6 Core/Spell: Properly remove REACT_PASSIVE on permanent feign death unapply. Fixes and closes #21156. 2018-02-13 15:47:44 +01:00
ariel-
4d14f613f3 Core/Unit: corrected calculation for SPELL_AURA_MOD_DAMAGE_TAKEN/SPELL_AURA_MOD_HEALING auras
- Spell bonus calculation and penalty was done twice, but it's simply flat +SP, which should be taken into account before other bonuses
- Fixed missing code from SpellDamageBonusDone/SpellHealingBonusDone and killed multiplication by stack amount twice for default coefficient spells (already multiplied on level penalty)
2018-02-12 16:52:59 -03:00
ariel-
303efcf0e4 Core/Spells: remove 'Vanish Purge' hack, the spell is present on DB and is copy of one in vanilla DBC
Thanks to killerwife for the heads-up
2018-02-08 23:18:45 -03:00