Commit Graph

1374 Commits

Author SHA1 Message Date
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
UltraNix de0672e9d8 fix(Core/Pet): Standardize pet run speed at 115% rate. (#9478)
Fixes #9230
2021-12-14 13:36:43 -03:00
Skjalf b4a14214ca fix(Core/Instances): always put boss minions in combat with zone (#9649) 2021-12-13 18:26:38 +01:00
UltraNix 0a0013aaef fix(Core/Guild): Properly updates guild leader using command guild rank. (#9596)
Fixes #9396
2021-12-12 22:18:33 -03:00
UltraNix 4e70e60427 fix(Core/Spells): Properly handle pet spell auras with infinity cooldown. (#9576)
Fixes #9339
2021-12-12 11:43:22 -03:00
UltraNix b1303e0e96 fix(Core/Loot): Set skinnable flag only after all loot was taken. Source: TrinityCore. (#9573)
Fixes #9318
2021-12-12 10:31:00 -03:00
UltraNix 4e93671b3c fix(Core/Pets): Properly cast spells on friendly target if not in LoS… (#9570)
* fix(Core/Pets): Properly cast spells on friendly target if not in LoS or out of range.

Fixes #7790
2021-12-12 09:25:10 -03:00
Rochet2 2c0de6aa28 fix(Core/ScriptMgr): Correct whisper hook parameters (#9674)
https://github.com/azerothcore/mod-eluna-lua-engine/issues/74
2021-12-12 07:20:54 -03:00
UltraNix 6cc1d1a497 fix(Core/Pets): Add cooldown on spell cast if pet initially was out of range or not in LoS. (#9539)
Fixes #8425
2021-12-11 23:01:21 -03:00
IntelligentQuantum 3591f69662 refactor(Core/Packet): Guild (#9411)
* Core/Packet: Guild

* Winfi
2021-12-11 10:00:06 +01:00
Kargatum fad214efe0 feat(Core/ScriptMgr): replace macro and cleanup (#9598) 2021-12-10 15:05:28 -03:00
Skjalf 2d55974c0c Revert "fix(Core/Spells): Forward core changes (#8841)" (#9631)
This reverts commit 85d2c39a48.
2021-12-10 15:31:48 +01:00
UltraNix e5cbba1c4c fix(Core/Spells): Melee spells are not affected by cast haste modifiers. Source: TrinityCore. (#9501)
Fixes #5136
2021-12-10 01:21:49 -03:00
UltraNix 52d8e1b68a fix(Core/Spells): Channeled destination spells should not interrupt flag capturing. (#9472)
Fixes #9225
2021-12-09 23:45:01 -03:00
schell244 39355fa1ee fix(Core/Players): Update the player's zone and area only after update the player's position server-side (#9419) 2021-12-09 21:58:43 -03:00
acidmanifesto 85d2c39a48 fix(Core/Spells): Forward core changes (#8841) 2021-12-09 18:24:16 -03:00
UltraNix 0300cef119 fix(Core/Auras): Always process hover/waterwalking movement flags on aura removal. (#9416)
Fixes #9056
2021-12-09 18:06:53 -03:00
Kargatum c8809f15c2 feat(Core/ScriptMgr): correct execute bool hooks (#9574) 2021-12-09 10:58:23 -03:00
UltraNix 52d4c43bcf fix(Core/Spells): Damage spell modifiers do not affect wands. (#9418)
Fixes #9130
2021-12-09 08:11:58 -03:00
Noxies c95c29838b feat(Scripts/Commands): Item restoration command (#9538)
* Implement item restore command & move itemmove to new item cmd

* Implement LANG_COMMAND_DISABLED

* Prevent command usage if no config is set

* WIP: `.item restore list`

* Fix restore list & create base for restore item

* Send item to player via mail

* Put player as last argument

* Use Postmaster & fix restore list

* Show item name in restore list

* Update HandleItemMoveCommand to be using the api

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>

* Send item instantly if online
2021-12-08 23:57:15 -03:00
UltraNix 85abfafb2b fix(Core/Battlegrounds): Delay a little bit relocation of dead players. (#9302)
Fixes #8958
2021-12-08 18:10:26 -03:00
Malcrom e8481791e0 fix(Core/Spell) Green Beam spells should only hit one target (#9593)
* fix(Core/Spell) Green Beam spells should only hit one target

* Update SpellMgr.cpp

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
2021-12-08 19:48:32 +01:00
acidmanifesto fa1c2eca9d fix(Core/Player): Fix potential freeze on login after skipping cinematics (#9577)
Move to static_cast and matching it up with tc stops the error on console and first login characters from being frozen when skipping cinematics
2021-12-08 11:50:49 -03:00
IntelligentQuantum caedaa8617 Core/ScriptMgr: Duplicate include (#9511) 2021-12-07 18:37:19 -08:00
Ollie Armitage bb6b7f2fab fix(Core/Loot): Send Retrieval Mail for lost disenchant mats 2021-12-06 22:13:58 -03:00
IntelligentQuantum 1f645099b6 fix(Core/Spells): Steady Shot now deals the correct damage when using Heirloom Weapons. 2021-12-06 21:54:52 -03:00
acidmanifesto 1b5c4d82db fix(Core\Logging): Capitalization 2021-12-06 19:39:04 -03:00
UltraNix 90451c1d3f fix(Core/Movement): Unroot should remove MOVEMENTFLAG_FALLING if not really falling (#9428)
- Closes #9187
2021-12-06 20:56:40 +01:00
UltraNix d0167d0d6d fix(Core/Corpses): Reset corpse location data if player already resurrected in different dungeon map. (#9429)
Fixes #9210
2021-12-06 14:48:46 -03:00
Kargatum 18d5482415 fix(Core/Chat): correct logic for using guild officer chat (#9535) 2021-12-06 12:29:20 -03:00
Kitzunu 6b6e90d43d feat(Script/Misc): Implement missing FactoryGameObjectScript (#9388) 2021-12-05 07:14:15 -03:00
Kargatum 846487acaa fix(Core/ScriptMgr): Cleanup few scripts (#9497) 2021-12-04 17:33:02 -03:00
Kargatum 0b507d531d refactor(Scripts/Commands): convert cs_modify to new system (#9474) 2021-12-04 11:56:47 -03:00
Kargatum aa872743e7 fix(Core/ScriptMgr): correct condition for AreaTrigger (#9491)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-12-04 21:39:54 +07:00
acidmanifesto 1500453f59 feat(Core\Player): Added createplayerinfo_cast_spell support cast spell for some class spells (#9448) 2021-12-03 18:33:21 -03:00
55Honey e094b6f90c chore(Core/Warden): comment auto ban from TIMING_CHECK_FAIL (#9470) 2021-12-02 19:26:10 -03:00
Noxies 09a087aed8 fix(Core/LFG): Prevent leaving LFG if in combat (#9466) 2021-12-02 13:01:22 -03:00
Kargatum 51adbffae4 feat(Core/Modules): add separated lib for modules (#9281) 2021-12-02 20:28:58 +07:00
UltraNix 8668a03e14 fix(Core/DungeonFinder): Dead players should be able to get XP reward from random dungeon. (#9319)
Fixes #9082
2021-12-01 07:04:41 -03:00
UltraNix fc4b5a93a0 fix(Core/Quests): Do not save queststatus for autocomplete quests . S… (#9425)
* fix(Core/Quests): Do not save queststatus for autocomplete quests . Source: TrinityCore.

Fixes #9150
2021-11-30 21:05:06 -03:00
Kitzunu f9337497d8 chore(Core/Auras): Clean up Aura::CanBeSaved() (#9343) 2021-11-30 13:03:04 -03:00