Commit Graph

1264 Commits

Author SHA1 Message Date
Kitzunu ac99eb48e1 refactor(Core/Misc): abs() to std::abs() (#9789) 2021-12-31 19:29:39 -03:00
Skjalf b97cf91a15 fix(Core/Scripting): fix a loop in the affected mod spell hook (#9948) 2021-12-31 12:03:39 -05:00
Kitzunu 69683a3472 chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768) 2021-12-31 12:00:40 -03:00
IntelligentQuantum 0556f0b3d5 refactor(Core/Packets): Totem (#9451)
* Totem

* Update WorldSession.h
2021-12-31 10:23:38 -03:00
Kargatum e12494d993 feat(Core/Pets): Management refactoring (#9712)
* feat(Core/Pets): rework managment

* 1

* 2

* 3

* 4

* 5

* cs pet

* check before ressurect

* pet DECLINED_NAMES

* display

- https://github.com/azerothcore/azerothcore-wotlk/issues/9297

* ArenaSpectator

* 1
2021-12-30 18:45:13 -03:00
Skjalf 24ab99919a feat(Core/Scripting): Implement OnIsAffectedBySpellModCheck hook (#9903) 2021-12-30 17:39:13 -03:00
IntelligentQuantum 53a6fb7513 refactor(Core/Packets): Bank packets (#9627) 2021-12-30 16:00:24 -03:00
Noxies bbf08c1aaa fix(Core/TemporarySummon): Implement TEMPSUMMON_TIMED_DESPAWN_OOC_ALIVE (#9915) 2021-12-30 08:05:46 -03:00
Kargatum c81891fc11 feat(Core/AI): convert SelectAggroTarget to enum class (#9893) 2021-12-28 19:13:12 -03:00
UltraNix a54c84f349 fix(Core/Players): Removed old and invalid Player::SetInWater funct… (#9739)
* fix(Core/Players): Removed old and invalid `Player::SetInWater` function.

Updates #8729

* buildfix.
2021-12-28 09:34:45 -03:00
IntelligentQuantum f88203a73a fix(Core/Player): Arena AFK (#9733) 2021-12-28 07:37:47 -03:00
Skjalf 58302e4196 feat(Core/Player): Implement player specific settings (#9483) 2021-12-26 08:39:15 -03:00
Kargatum 455372bda4 feat(Core/SavingSystem): remove old player saving system (#9779) 2021-12-24 08:37:45 -03:00
UltraNix d0f8cf3dd4 fix(Core/Loot): Proeprly handle UNIT_DYNFLAG_LOOTABLE flag. (#9761)
Fixes #9741
2021-12-24 06:04:43 -03:00
UltraNix 6a88b48f98 fix(Core/Movement): Always stop moving on new chase movement generator init. (#9622)
Fixes #9421
2021-12-24 05:00:11 -03:00
Skjalf a72d299f68 fix(Core/Player): Solve the issue with creature not offering low level quests (#9862) 2021-12-23 15:26:58 -03:00
UltraNix 07c93c2dfa fix(Core/Movement): Fixed adding wrong flag on root. (#9803)
* fix(Core/Movement): Fixed addind wrong flag on root.

Fixes #5891
2021-12-22 13:54:23 -03:00
Cláudio Costa 81cf9e3aa7 fix(Core/Player): Quest Question marks (#9683)
* fix(Core): Quest Question marks

* extra changes

* changes for players with repetable quests
2021-12-22 08:37:01 -03:00
Kitzunu 8f707fbf34 fix(Core/Load): Comment continue (#9836) 2021-12-21 19:22:06 -03:00
IntelligentQuantum 11a734bf2b refactor(Core/Scripts): Spell To Scripts (#9718) 2021-12-21 11:13:45 -03:00
IntelligentQuantum 838c88f45a refactor(Scripts/Commands): convert cs_misc to new system (#8939) 2021-12-21 19:32:21 +07:00
Kitzunu 7617ae4645 refactor(Core/Misc): fmod() to std::fmod() (#9796)
- prefer std functions over C functions
2021-12-21 01:16:59 -03:00
Skjalf ea1ffd6894 feat(Scripts/Commands): Implement item refund command (#9811) 2021-12-20 16:11:45 -03:00
Skjalf e7b5bb2420 feat(Core/Player): Split Dungeon Finder quest rates (#9788) 2021-12-19 19:29:26 -03:00
IntelligentQuantum f7ff583b7e feat(Core/SmartScripts): SMART_ACTION_DISABLE_EVADE (#9772)
* Update SmartScriptMgr.h

* Update SmartScript.cpp

* Update SmartAI.h

* Update SmartAI.cpp
2021-12-19 18:30:55 -03:00
Francesco Borzì cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
acidmanifesto 800c28b8c2 fix(Core/Creature): Remove empty spell ids from CreatureAddon.auras vector (#9783) 2021-12-19 14:12:08 -03:00
Skjalf e5d650c5f3 fix(Core/Spells): Only check GO state for doors when using SPELL_EFFECT_OPEN_LOCK (#9778)
buttons and other object types may expect other states in order to operate correctly
2021-12-19 10:15:15 -03:00
Skjalf 9265d346be fix(Core/GridNotifiers): fix tempsummons not finding nearby creatures (#9749)
* fix(Core/GridNotifiers): fix tempsummons not finding nearby creatures

* fix lord valathak being summoned along mor
2021-12-19 07:53:53 -03:00
UltraNix 3b8e3eb609 fix(DB/Gameobjects): Spirit Candle should properly give buff to nearby players (#9690)
Fixes #8815
2021-12-17 18:29:08 +01:00
Kitzunu 8e1e305e8d feat(Core/Creature): Log temporary auras on creatures (#9670)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/54f94567649c78d146f4087cc874e4d0cbcff28b)

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2021-12-17 18:07:18 +01:00
Kitzunu 4a6db8f8c6 fix(Core/Object): Add infinite gob check (#9667)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/b0db728c49f0b70d2c4f18270c389e4445161b7f)

Co-authored-by: Kittnz <5845231+kittnz@users.noreply.github.com>
2021-12-17 18:06:57 +01:00
Kitzunu 9eab6d373d fix(Core/Guilds): Implement guild bank gold limit matching client (#9666)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-12-17 18:06:32 +01:00
UltraNix 0dd59e66d3 fix(Core/Quests): implement QUEST_SPECIAL_FLAGS_NO_REP_SPILLOVER (#9661)
Fixes #9552
2021-12-17 18:06:15 +01:00
UltraNix a4ff3f6101 fix(Core/Movement): despawn mini pets on flight take (#9624)
Fixes #9510
2021-12-17 18:05:12 +01:00
Skjalf 24f4e08708 chore(Core/Cache): Remove an assert breaking 1v1 arena module (#9651) 2021-12-17 00:27:59 -03:00
UltraNix 2feb26d828 fix(Core/Units): Modify health dependent aura states on update rather than immediately on death. (#9641) 2021-12-16 22:41:01 -03:00
Kitzunu 89a1b5c9f4 fix(Core/Spells): Implement SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CL… (#9615)
* fix(Core/Spells): Implement SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CLIENT

* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/b3b7f0761d5605d57f9d62ca8e22a8cd9a4df24b)

* fix build
2021-12-16 20:29:33 -03:00
acidmanifesto 2afd3a420c (Core\DB) Create Logging Game Event Creatures\Gameobjects (#9731)
Add loggin for game_event_creature/game_event_gameobject contains creature/gameobject not found in table creature/gameobject table.
Also Clean Up SQL for reported missing guids per game_event_creature/game_event_gameobject that was reported in the DBerrors.log
2021-12-16 11:02:57 -05:00
Branel cac265525c fix(Core/Player): Interrupt flag capturing even if damage is absorbed. (#9445) 2021-12-16 09:43:09 -03:00
UltraNix 0f83d52f43 fix(Core/Trainers): add new column ReqSpell to npc_trainer table (#9490)
Prevent learning gnomish and goblin engineering recipes at same time.
Fixes #5390

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2021-12-16 11:18:21 +01:00
Kitzunu cbdc39ce1e fix(Core/Spells): Implement SPELL_EFFECT_FORCE_CAST_2 (#9613)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/5cdc870acc257130935451245e7d4e12ae53ff21)
2021-12-15 21:46:16 -03:00
Skjalf 086b20edbc fix(Core/Unit): fix quest items not dropping if they are the only thi… (#9723) 2021-12-15 13:26:02 -03:00
UltraNix d87d0a2ae8 fix(Core/Pets): Improved Revive Pet should affect dead despawned pet. (#9625)
* fix(Core/Pets): Improved Revive Pet should affect dead despawned pet.

Fixes #9589
2021-12-15 05:32:16 -03:00
UltraNix 1cc9ea83ab fix(Core/Spells): Mind Control can be dispelled from friendly target. (#9689)
Fixes #9629
2021-12-15 04:29:22 -03:00
Skjalf 8490893647 fix(Core/Scripts): Fix QuestRewarded hook (#9717) 2021-12-15 04:10:38 -03:00
The Legendary Kingdom 5c8acadf14 fix(Core/Spell): Core not handling AURA_INTERRUPT_FLAG_TELEPORTED (#9543)
* fix(Core/Spell): Core is not handling AURA_INTERRUPT_FLAG_TELEPORTED

Actually auras from spells with AURA_INTERRUPT_FLAG_TELEPORTED are not removed
on teleportation. This change makes it handled at teleportation on same map AND
if map changes, but it does not remove the aura when entering world to avoid
such auras being removed at character login.

Closes AzerothCore issue #9542

* delete invalid tabulations

* Move auras removing into the map/distance check above

* Do not remove unnecessary auras, and remove from other condition

* move it outside the 100 yards check, so it removes auras with this flag whenever teleporting

* remove whitespace at EOL

* Move the removal under the 100yards condition

This removes the specified auras
only if teleports more than 100 yards away
and avoids spells such as blink or shadowstep
removing such auras
2021-12-14 20:38:25 -03:00
Skjalf 2384ed1254 fix(Core/Character): Fix OnFirstLogin script hook (#9686) 2021-12-14 20:06:41 -03:00
Skjalf 19a3caa5eb fix(Core/Scripts): Fix bool script hooks not executing code (#9699)
* fix(Core/Scripts): Fix bool script hooks not executing code

* warnings
2021-12-14 19:53:46 -03:00
UltraNix 658a7c2b56 fix(Core/Spells): Do not apply diminishing return on spells casted by mobs. (#9536)
Fixes #9028
2021-12-14 15:17:44 -03:00