Commit Graph

874 Commits

Author SHA1 Message Date
Sorikoff
382f563571 Scripts/Spells: Runic Healing Injector (#23690)
* Scripts/Spells: Runic Healing Injector

* Rename 9999_99_99_99_world.sql to 2019_08_08_00_world.sql
2019-08-08 14:12:49 +02:00
Sorikoff
996d4f7cc4 Scripts/Spells: Port Part of Druid Scripts to New Script Registration (#23691) 2019-08-08 09:22:05 +02:00
Keader
7bd1b077f1 Build fix
Followup: 7b541098d5
2019-08-04 12:02:33 -03:00
Keader
7b541098d5 Scripts/Spells: Fixed mage Empowered Fire regain percent
You should regain 2% of your base mana. With old script, you get 15% of base mana.
2019-08-04 11:40:12 -03:00
Gildor
75a5192c31 Spells/Priest: Fix Power Infusion, shouldn't stack with Arcane Power (Mage) (#23619)
* Spells/Priest: Fix Power Infusion, shouldn't stack with Arcane Power (Mage)

* delete unnecessary comments

* make @Aokromes happy ;)

* update group_id

* Rename 9999_99_99_99_world_335.sql to 2019_07_25_00_world_335.sql
2019-07-25 14:44:56 +02:00
ForesterDev
915f8a9d2c Core/Totems: update select display for shaman totems (#23583)
(cherry picked from commit 8ca6a20e73)

# Conflicts:
#	src/server/game/Entities/Totem/Totem.cpp
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Entities/Unit/Unit.h
#	src/server/game/Spells/SpellMgr.cpp
#	src/server/game/Spells/SpellMgr.h
#	src/server/game/World/World.cpp
2019-07-24 23:53:31 +02:00
Gildor
81d402446f Spell/Mage: Fixed duplicate / erroneous ID of the spell Consumption (#23618) 2019-07-21 12:03:20 +02:00
Wyrserth
246a8661fd Script/Spell: don't use invalid spells for the Magic Rooster mount.
Closes #1822.
2019-07-19 00:31:39 +02:00
Wyrserth
25e01b0402 Core/Script: fix logical mistake in spell_gen_clone_weapon_aura. 2019-07-17 20:42:42 +02:00
ccrs
d1dc0e2dc1 Scripts/DK: correctly handle Blood Tap 2019-07-13 17:57:07 +02:00
Sorikoff
a64d7df662 Scripts/Spells: Brittle Armor & Mercurial Shield (#23576) 2019-07-08 15:42:35 +02:00
ForesterDev
c44fb37f74 Core/Unit: Implement more helper methods (#23555) 2019-07-05 14:07:35 +02:00
ForesterDev
b47bb59e2a Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender (#23520)
* Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender and fix some cases, where we should get player gender, instead of modified by display gender

* fix merge

* Add virtual methods for Unit class
2019-07-02 10:17:02 +02:00
ccrs
401777d024 Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
        uint8 GetLevelForTarget(WorldObject const* /*target*/)
        void SetLevel(uint8 lvl)
        uint8 GetRace()
        uint32 GetRaceMask()
        uint8 GetClass()
        uint32 GetClassMask()
        uint8 GetGender()
2019-07-01 21:36:32 +02:00
Sorikoff
5c09ff51f7 Scripts/Spells: Dimensional Ripper - Everlook (#23547) 2019-07-01 20:55:30 +02:00
ccrs
626a24822b Misc: some corrections after recent merges 2019-06-29 16:01:58 +02:00
Sorikoff
33b4ad5a89 Scripts/Spells: Ultrasafe Transporter: Toshley's Station (#23537)
* Scripts/Spells: Ultrasafe Transporter: Toshley's Station

* Rename 9999_99_99_99_world.sql to 2019_06_29_01_world.sql
2019-06-29 14:02:04 +02:00
Sorikoff
63f548921c Scripts/Spells: Dimensional Ripper - Area 52 (#23505)
* Scripts/Spells: Dimensional Ripper - Area 52

* Rename 9999_99_99_99_world.sql to 2019_06_28_00_world.sql
2019-06-28 20:15:16 +02:00
ccrs
4a8736b829 Scripts/Misc: couple corrections to the recent PRs 2019-06-24 13:32:43 +02:00
Sorikoff
e9d803ccee Scripts/Spells: Migrate Teleporting to Script (#23458)
* Scripts/Spells: Migrate Teleporting to Script

* Rename 9999_99_99_99_world.sql to 2019_06_21_02_world.sql
2019-06-21 19:25:51 +02:00
Sorikoff
a4cd4d8b87 Scripts/Spells: Migrate Lightwell to Script (#23455)
* Scripts/Spells: Migrate Lightwell to Script

* Add newline to SQL file

* Misc

* Rename 9999_99_99_99_world.sql to 2019_06_21_01_world.sql
2019-06-21 19:21:49 +02:00
Wyrserth
2315d43b2c Core/Spell: allow Northrend Inscription Research to unlock three recipes the first time it is cast. (#23401)
Also prevent double skill-up because of duplicate UpdateCraftSkill() calls.
2019-06-15 14:13:19 +02:00
Killyana
7dd87e3df4 Spell/Script: Stasis Field
Closes #23355
2019-06-04 18:25:21 +02:00
Giacomo Pozzoni
797fba98e9 3.3.5 gameobject summoner (#23289)
* Scripts/Misc: Change IsSummonedBy(Unit*) to IsSummonedBy(WorldObject*)

* Scripts/Misc: Fix build

* Core/TempSummons: Rename GetSummoner() to GetSummonerUnit()

* Core/TempSummons: Add support to TempSummons::GetSummoner() to return GameObject too

* Fix build

* Core/TempSummons: Allow GameObject to be owner of TempSummon

* Core/TempSummons: Add support to SAI for GameObject owner of TempSummon

* Scripts/Misc: Fix no-pch build

* Core/TempSummons: Implement PR comments
2019-05-23 21:08:29 +02:00
jackpoz
a0bd68cf46 Core/Misc: Fix static analysis issues reported by Coverity 2019-05-18 16:12:23 +02:00
Wyrserth
4d04344b41 Core/Spell: add proper cooldowns to some spells used by vehicles (#23260)
* Core/Spell: add proper cooldowns to some spells used by vehicles, thanks to jackpoz and sirikfoll.

* Add Wing Buffet and Stampy's Stompy-Stomp.

* Add Tag Greater Felfire Diemetradon and Touch of Darkness.

* Rename 9999_99_99_99_world.sql to 2019_05_17_00_world.sql
2019-05-17 12:08:20 +02:00
Killyana
14445088ea Quest/Script: Breakfast Of Champions
Set both Earthshaker Drum Events to 50%
2019-04-30 02:23:23 +02:00
Sorikoff
90d4254a87 Scripts: Minor improvements to recently migrated scripts (#23189)
Ref: 2cfaeb1400
2019-04-21 11:22:39 -03:00
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