Commit Graph

915 Commits

Author SHA1 Message Date
Shauren
5c1fc5e387 Core/Pets: Pet management refactoring (#25191)
* Core/Pets: Pet management refactoring

* Preload basic pet data on character login with async query
* Load additional pet data (declined names/auras/spells/cooldowns) using async query after we are sure pet loading will succeed
* Remove all select queries related to pet stable/unstable
* Remove all silent pet deletions except explicit UI-triggered abandons
* Fixed displaying stable master content when current pet is not summoned
* Allow to stable/swap unsummoned current pet

Closes #3610
Closes #21266
2020-08-16 21:39:25 +02:00
Peter Keresztes Schmidt
6c7837f947 Core/Unit: Make HandleEmoteCommand typesafe (#25249)
* Scripts/ScarletMonastery: Fix wrong emote during Headless Horseman encounter

* Scripts/HoR: Fix wrong emote during escape event

* Core/Unit: Make improve type safety of HandleEmoteCommand

Change argument type to the expected enum type Emote

* Scripts/CoS: Use SetUInt32Value to set UNIT_NPC_EMOTESTATE

UNIT_NPC_EMOTESTATE is no flag field
2020-08-15 15:29:43 +02:00
Rothend
a375f15ae2 Script/Quest: fix (More) Torch Catching (#24907)
* Script/Quest: fix (More) Torch Catching.

Closes #24893

Co-authored-by: Carbenium <carbenium@outlook.com>
2020-08-12 13:40:28 +02:00
Carbenium
8642aaaf92 Core/WorldObject: Replace non-std::chrono SummonGameObject overloads
Also fix intended despawn time of GOs used by the "Engineering a Disaster" quest
2020-07-27 23:00:51 +02:00
Carbenium
5832790428 Scripts/World+Outland+Spells: Use std::chrono overload of Creature::DespawnOrUnsummon 2020-07-26 22:21:59 +02:00
Treeston
896b68d5c2 Core/Time: Rename GetGameTime{System, Steady}Point methods
The names are a bit unhandy. Rename them (shorter but still meaningful).

GetGameTimeSystemPoint() -> GetSystemTime()
GetGameTimeSteadyPoint() -> Now()

Also add 2 new typedefs:

typedef std::chrono::steady_clock::time_point TimePoint;
typedef std::chrono::system_clock::time_point SystemTimePoint;

Closes #25042
2020-07-17 17:05:55 +02:00
Peter Keresztes Schmidt
c92950b3e1 Core/DataStores: Update DBC field names to generated ones (#24999) 2020-07-12 15:36:55 +02:00
Keader
4418450804 Scripts/Warrior: Fixed a typo on intervene script 2020-07-01 07:31:51 -03:00
Keader
6d16c39e76 Scripts/Warrior: Implemented threat effect of Intervene 2020-06-28 13:14:25 -03:00
Shauren
0468c70dfe Core/Maps: Implemented getting area id from gameobject spawns
Yes, you can now spawn LK platform anywhere and it will treat you as inside Icecrown Citadel

(cherry picked from commit 42f9deb21e)
2020-06-27 20:23:30 +02:00
Rothend
5f35bf9e79 Script/Spell: fix Midsummer's Juggling Torch (#24885)
* Script/Spell: fix Midsummer's Juggling Torch.

Closes #17446

* Remove unneeded GetPosition() call, thanks jackpoz for noticing!

* Rename 9999_99_99_99_world_midsummer_torch_juggling.sql to 2020_06_24_01_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-24 21:26:01 +02:00
Rothend
c4caae9b6d Script/Spell: properly round damage of Seal of Righteousness (on-hit proc). (#24821) 2020-06-17 19:28:05 +02:00
Sorikoff
34fecde022 Scripts/Pet: Lil' K.T (#24528)
* Lil' K.T.

* Rename 9999_99_99_99_world_335.sql to 2020_05_10_00_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-05-10 16:23:13 +02:00
Keader
94aff38187 Scripts/Spells: Fixed Mages 2P T10 proc delay (#24496) 2020-04-26 22:33:40 -03:00
jackpoz
cb41c8828f Core/Misc: Replace tabs with spaces 2020-04-05 19:11:01 +02:00
jackpoz
caae3886d2 Core/Misc: Remove whitespace at the end of lines 2020-04-05 19:11:00 +02:00
Giacomo Pozzoni
468ecb7252 Core/Logs: Log full guid instead of just low guid 2020-04-05 19:10:57 +02:00
Keader
ed1520bda1 Script/Spells: Fixed some codestyle issues of previous commit 2020-04-03 14:00:46 -03:00
Alan Deutscher
2b1b36f561 Scripts/Spells: prevent Drain Soul from cancelling prematurely (#24378)
More info at https://github.com/TrinityCore/TrinityCore/pull/24390#issue-398263036
2020-04-03 13:57:20 -03:00
Jozef Dúc
e61c54dce8 Scripts/Spells: Fixed Bloodlust duplicated hook call 2020-04-03 12:51:17 -03:00
Gildor
43adbfb459 Core/Spells - DK: Fix Icy Clutch dispel (#24289)
Closes #24269
Patch 3.2.0 (04-Aug-2009): Icy Clutch can no longer miss when Frost Fever hits, however, when Frost Fever is dispelled Icy Clutch will also be dispelled.
2020-03-14 18:13:43 -03:00
Rushor
3ddc6e70df Spell/Script: Spawn Blood Pool
Closes #23878
2020-03-13 16:21:23 +01:00
Sorikoff
53657441aa Scripts/Spells: Nourish (#24057)
* Scripts/Spells: Nourish

* Rename 9999_99_99_99_world.sql to 2020_02_08_02_world.sql

* Update 2020_02_08_02_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-08 20:55:09 +01:00
Alan Deutscher
a0c07655eb Scripts/Spells: fix Turkey Timer duration (#24048)
* spell_gen_turkey_marker::OnPeriodic: Pop expired stack timestamps from tracking list.

* Be a bit more explicit about the data type of removedCount.

* Formatting nudge.

* Remove brackets.
2020-01-14 19:49:32 +01:00
Gildor
78e77a086b Core/Spells: Fix Sacred Shield (Paladin) absorb amount with ICC buff (#24023) 2020-01-02 13:07:39 -03:00
Aokromes
ed93932537 New year
Say bye bye to every year changing dates
2020-01-02 06:25:50 +01:00
Gildor
617e9dacc8 Core/Spells: Fix Power Word: Shield (Priest) absorb amount (#23985)
Closes #22090
2019-12-30 10:46:10 -03:00
Keader
e15354dc7f Scripts/Spells: Fixed Black Magic proc with some druid spells (#24002) 2019-12-30 10:42:21 -03:00
Eridium
b60786a916 Spell/Script: Egg Nog (#24007)
Closes  #23996
2019-12-29 12:09:31 -03:00
Keader
ecd4ffc1ce Build fix 2019-12-15 12:40:26 -03:00
Killyana
6ca4f340bd Tabs 2019-12-15 16:33:00 +01:00
Killyana
c22b1e6cb4 DB/Quest: Take Down Tethyr!
Closes #22407
2019-12-15 16:27:21 +01:00
Killyana
6db4bf6671 Quest: Weakness to Lightning
Closes #23916
2019-12-07 16:57:16 +01:00
Giacomo Pozzoni
909941e1b4 Core/GameObjects: Skip LoS checks for traps (#23936)
* Core/GameObjects: Skip LoS checks for traps

* Core/GameObjects: Fix spells cast by traps missing always

* Scripts/Spells: Fix WSG heal buff not healing

The WSG green heal buff is now cast by a GameObject so the spell target should be used to calculate the healing, not the GameObject.
2019-11-24 21:00:42 +01:00
Gildor
b98f858cd2 Spells/DK: Fix wrong class name in Rime AuraScript (#23783)
(Introduced in this commit: 2ff855054f)
2019-09-10 16:29:38 +02:00
ForesterDev
448facc5e7 Core/Spells: Fixed warlock's Banish cancel if target was already banished (#23697)
* Core/Spells: Add SpellMissInfo argument to BeforeHit hooks and call them also when the spell doesn't hit. (#17613)

(cherry picked from commit 8ff5b35be1)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
#	src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
#	src/server/scripts/Spells/spell_warlock.cpp

* Core/Spells: Fixed warlock's Banish cancel if target was already banished (#17614)

(cherry picked from commit 4587b5d880)

# Conflicts:
#	src/server/scripts/Spells/spell_warlock.cpp
2019-08-23 19:24:56 +02:00
Sorikoff
d56dd89635 Scripts/Spells: Code style adjustments for druid scripts (final?) (#23726) 2019-08-19 09:13:38 +02:00
Sorikoff
63bbf4a4be Scripts/Spells: Code style adjustments for druid scripts (#23725) 2019-08-18 17:24:18 +02:00
Sorikoff
9a8a01925a Scripts/Spells: Port druid scripts to new script registration syntax (2 of 3) (#23696)
* Scripts/Spells: Port Druid Scripts to New Script Registration

* Revert

* Revert 2

* Revert 3

* Revert 4
2019-08-18 15:56:27 +02:00
Keader
ea16c4ac9f Scripts/Spells: Implemented Wyvern Sting script
- Removed old hack with spell_linked_spell
2019-08-17 11:48:27 -03:00
Sorikoff
f7793e7800 Scripts/Spells: Port druid scripts to new script registration syntax (3 of 3) (#23714) 2019-08-15 12:38:59 +02:00
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