Treeston
3e78cffa1c
Scripts/World: New target dummy AI, because I don't trust the existing one in light of #21187 .
...
# Conflicts:
# src/server/scripts/World/npcs_special.cpp
2020-07-22 17:07:56 +02:00
Treeston
942c3a77da
Core: Combat/threat system rewrite (PR #19930 )
...
- PvE combat is now always mutual. UNIT_FLAG_IN_COMBAT is backed by actual references to the units we're in combat with.
- PvP combat is now also tracked, and almost always mutual; spells like Vanish and Feign Death can break this rule. That means we can easily determine a list of players we're fighting.
- By extension, IsInCombatWith now has sensible behavior when invoked on nonplayers.
- Threat and combat systems are no longer the same.
- They still have an enforced relationship (threat implies combat - clearing combat clears threat)...
- ...but we can have combat without threat. A creature (with threat list) isn't considered to be engaged until it has an entry on its threat list...
- ...which means we can now faithfully replicate retail engage behavior. Combat on projectile launch - engagement start on projectile impact. Yay for progress!
- AI method refactor, as already ported in 6113b9d - `JustEngagedWith`, `JustEnteredCombat` and `JustExitedCombat`.
- Vehicle threat is now properly pooled on the main vehicle body (fixes #16542 ).
- Various edge case bug fixes for threat redirects (Misdirection "cancelling" Vigilance and similar).
- Target re-selection is now significantly faster.
- Fixed a ton of other smaller edge case bugs, probably.
Closes #7951 and #19998 .
2020-07-22 16:49:37 +02:00
treeston
a09db6b4ba
Hi, I'm Treeston, and welcome to Combat PR Prep Refactors.
...
Today, we're moving UNIT_FLAG_IMMUNE_TO_PC and UNIT_FLAG_IMMUNE_TO_NPC to higher-level abstraction so combat manager can react to it.
New methods on Unit:
- void SetImmuneTo<All/PC/NPC>(apply, keepCombat = false);
- bool IsImmuneTo<All/PC/NPC>() const;
# Conflicts:
# src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp
# src/server/game/Entities/Unit/Unit.cpp
# src/server/game/Spells/SpellEffects.cpp
# src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockDepths/boss_tomb_of_seven.cpp
# src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
# src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp
# src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
# src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
# src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
# src/server/scripts/EasternKingdoms/zone_tirisfal_glades.cpp
# src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/culling_of_stratholme.cpp
# src/server/scripts/Kalimdor/WailingCaverns/wailing_caverns.cpp
# src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp
# src/server/scripts/Kalimdor/zone_stonetalon_mountains.cpp
# src/server/scripts/Kalimdor/zone_tanaris.cpp
# src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel.cpp
# src/server/scripts/Northrend/Naxxramas/boss_thaddius.cpp
# src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
# src/server/scripts/Outland/TempestKeep/arcatraz/boss_harbinger_skyriss.cpp
2020-07-22 14:35:53 +02:00
Treeston
ec04d3b2cd
[3.3.5] Combat/Threat rewrite - prep & refactor ( #19966 )
...
* Combat/Threat rewrite (PR #19930 ) prep work. Mostly refactors, and a compatibility layer on ThreatManager/HostileReference that allows scripts to be changed already.
2020-07-22 13:43:23 +02:00
Ovah
b09d6e2330
Core/Movement: reimplement follow movement ( #124 )
2020-06-26 21:22:21 +02:00
Ovahlord
d148116ebe
Scripts/Guilds: fixed Cauldron of Battle, Big Cauldron of Battle and their Flask effect
2020-04-23 14:38:21 +02:00
Ovahlord
b653f2f819
Core/Units: ported power type updates from master branch
2020-04-22 03:13:02 +02:00
Shauren
d003ebd8e4
Core/DBLayer: Prevent using prepared statements on wrong database
2020-04-15 19:18:58 +02:00
jackpoz
2de72f78d8
Scripts/Guards: Fix spell cast spam after killing npc_air_force_bots guards
2020-04-05 21:05:14 +02:00
Ovahlord
9bfe43a88a
Core/Entities: remove PhaseMask
...
* database fields and values will remain until they have been converted to their according phase IDs
2020-03-29 04:05:43 +02:00
DevPrime and Evef
b046b19fd3
Core/Scripts: fixed most script related no pch warnings
...
Co-authored-by: Evef <everf@outlook.com >
2020-03-11 12:54:27 +01:00
Ovahlord
507108d597
Scripts/DarkmoonIsland: implement Whack-a-Gnoll area restriction. No more unwanted guests in the gaming area!
2020-02-23 23:32:28 +01:00
Ovahlord
d9b854ad59
Core/Datastores: backported hotfix system implementation
2020-02-21 23:13:38 +01:00
Ovahlord
fcb79fee07
Core/Datastores: updated DBC structure names to generated member format
2020-01-25 12:36:32 +01:00
Ovahlord
7760d95962
Core/Creatures: backported trainer update and skill initialization
2020-01-12 23:53:35 +01:00
jackpoz
131986d1c2
Core/Misc: Replace time(nullptr) with GameTime::GetGameTime()
2020-01-11 03:30:41 +01:00
Aokromes
d6d3f06f06
New year
2020-01-04 18:32:38 +01:00
funjoker
6c56916b29
Misc: Update copyright information
...
Happy new year
2020-01-01 18:47:28 +01:00
Ovahlord
a8a119205b
Scripts/World: removed deprecated emerald dragon scripts
2019-12-08 11:43:06 +01:00
ccrs
94980ab362
Core/Movement: move MoveSplineInit ( #21857 )
...
The number of edge cases in which weirdness is seen on "effect movements" will be kinda reduced, plus consistency, plus movementInform on custom movement spline initalizations.
Core/Movement: use helpers for validation
Core/Movement: crashfix workaround
2019-10-06 04:55:46 +02:00
Ovahlord
44d07e3303
* Scripts/World: Rewrite air force trigger bots script, add hostility check along the way.
...
(ported commit: 0ae2afe307595463df8f4a16fdd1ee9740a11c9e)
2019-08-14 15:47:43 +02:00
Ovahlord
c074c3a9c6
Revert "Core/Misc: Replace time(NULL) with GameTime::GetGameTime()"
...
This reverts commit 5fe3a1f7f9 .
2019-07-08 15:56:29 +02:00
Ovahlord
5fe3a1f7f9
Core/Misc: Replace time(NULL) with GameTime::GetGameTime()
...
(ported commit: 12701cb0c6c45eb105ad449eb9a56e76d84d691e)
2019-07-08 12:19:19 +02:00
Ovahlord
ab7a694ef9
Scripts/Gilneas: make sure players will only cast Cataclysm when they have the requested target aura
2019-05-18 03:06:13 +02:00
Ovahlord
f0204840b2
Scripts/GameObjects: fixed visuals for Firework gameobjects
2019-04-09 20:00:19 +02:00
Ovahlord
ba49cac3aa
Scripts/Events: implement Whack-a-Gnoll minigame
2019-04-09 19:22:32 +02:00
Ovahlord
5b4c3e9d14
Scripts/Gilneas:
...
* scripted dialogue sequence when turning in Among Humans Again
* converted phase_area to sniffed quest zone specific phasing auras
* use the new weather state for Gilneas' map
* scripted Cataclysm quake visuals
2019-03-19 18:36:25 +01:00
Ovahlord
54c991bc3d
Scripts/Maps: ported WorldMapScript database implementation and ported Deeprun Tram script and removed unnecessary parts from it.
...
*thx to Annakin?
2018-11-21 13:16:17 +01:00
Ovahlord
938adaacdd
Core/Spells: increase the initial Z coordinate for Flaming and Frostfire Orb in order to prevent some minor terrain hickups blocking the movement
2018-11-07 01:43:41 +01:00
Ovahlord
65a0dbadd3
Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
2018-09-03 07:14:17 +02:00
PolarCookie
445632c266
DB: Naxxanar and Voltarus teleporters
...
Closes #22311
2018-08-29 18:46:39 +02:00
Ovahlord
b946de88bc
Core/DB: fix another chunk of startup errors
2018-08-28 05:48:07 +02:00
Ovahlord
c808b981f7
Core/Movement: merged smooth waypoint movement. Followup commits will be merged soon (tm)
2018-08-02 15:38:35 +02:00
Ovahlord
0d46b893fc
Core/Objects:
...
*merged 3.3.5 renaming of GetObjectSize() to GetCombatReach()
*made GetBoundaryRadius virtual and use it to determine the actual spell radius distance with it instead of using CombatReach
2018-07-13 14:50:10 +02:00
Ovahlord
818d0568f8
Core/Spells: fixed Wild Mushroom
...
*fixed Fungal Growth
2018-07-08 03:44:54 +02:00
Ovahlord
6fdd0de413
Core/Spells: Fire Power will now also have a roll chance when the Fire Orb explodes within five seconds when no victim has been found
2018-05-07 03:15:57 +02:00
Ovahlord
c07a20ff76
Core/Spells: fixed Mage Fire Power talent
2018-05-07 03:07:58 +02:00
Ovahlord
ffc11501fe
Core/Spells: fixed Mage Flame Orb and Frostfire Orb behaivior
2018-05-06 23:30:36 +02:00
Ovahlord
2cfdd3cbe0
Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
...
# Conflicts:
# src/server/game/AI/CoreAI/PetAI.cpp
# src/server/game/Battlegrounds/Battleground.cpp
# src/server/game/Battlegrounds/Zones/BattlegroundTP.cpp
# src/server/game/DungeonFinding/LFGMgr.h
# src/server/game/DungeonFinding/LFGQueue.h
# src/server/game/Entities/Creature/Creature.h
# src/server/game/Entities/Pet/Pet.cpp
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Entities/Player/Player.h
# src/server/game/Entities/Unit/Unit.h
# src/server/game/Globals/ObjectMgr.h
# src/server/game/Groups/Group.cpp
# src/server/game/Groups/Group.h
# src/server/game/Guilds/Guild.cpp
# src/server/game/Guilds/Guild.h
# src/server/game/Handlers/GuildHandler.cpp
# src/server/game/Handlers/LFGHandler.cpp
# src/server/game/Handlers/MiscHandler.cpp
# src/server/game/Handlers/NPCHandler.cpp
# src/server/game/Instances/InstanceScript.cpp
# src/server/game/Maps/Map.cpp
# src/server/game/Maps/Map.h
# src/server/game/Maps/ZoneScript.cpp
# src/server/game/Server/WorldSession.cpp
# src/server/game/Spells/SpellEffects.cpp
# src/server/game/Weather/Weather.cpp
# src/server/game/Weather/WeatherMgr.cpp
# src/server/scripts/Commands/cs_reload.cpp
# src/server/scripts/EasternKingdoms/Deadmines/boss_mr_smite.cpp
# src/server/scripts/EasternKingdoms/Deadmines/deadmines.h
# src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
# src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp
# src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h
# src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp
# src/server/scripts/Kalimdor/VortexPinnacle/vortex_pinnacle.h
# src/server/scripts/Spells/spell_dk.cpp
# src/server/scripts/Spells/spell_druid.cpp
# src/server/scripts/Spells/spell_generic.cpp
# src/server/scripts/Spells/spell_hunter.cpp
# src/server/scripts/Spells/spell_mage.cpp
# src/server/scripts/Spells/spell_pet.cpp
# src/server/scripts/Spells/spell_shaman.cpp
# src/server/scripts/Spells/spell_warrior.cpp
2018-03-28 12:35:52 +02:00
Aokromes
ad07191b89
Fix encoding
2018-03-28 11:31:28 +02:00
ariel-
4f0870cf32
And finally zmq nightmare is over
2018-03-28 06:11:01 -03:00
ariel-
5ff847159c
Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources
2018-03-28 04:41:59 -03:00
Ovahlord
a6368c7e6b
Fixed build
2018-03-14 09:11:11 +01:00
Ovalord
8248ababf1
Scripts/Mage: dropped an debug part for flame orb
2018-02-08 13:10:52 +01:00
Ovalord
315ccb4f9f
Core/Spells: fixed mage Flame Orb summon and Frostfire orb summon
...
*todo: the core has a bug that prevents the orb from slowing down
*frostfire orb handling
2018-01-26 01:00:18 +01:00
Ovalord
e60e0f9f4a
Scripts/Professions: fixed multi-profession trainer
2018-01-08 02:08:00 +01:00
Ovalord
716612d5ef
Scripts/Professions: fixed multi-profession trainer
2018-01-08 02:04:21 +01:00
Ovalord
fb3b62ca5b
Core/Pets: fixed order of pet action bar spells
...
*fixed stable master script
2018-01-07 21:16:38 +01:00
Ovalord
b7c15093a6
Core/Pets: merged funjoker's new Pet Slot system
...
* fixed packets and handling for stable master
* fixed Control Pet / Demon handling
* corrected wrong trainer spell for the Control spells
* Added base support for Assist behaivior
* corrected action bar layout
* Hunter Pets will now have the same level as their tamer (patch 4.1 change)
* corrected health stats for pets
2018-01-07 02:00:31 +01:00
Aokromes
46366373ab
Core/AI: Some more refactoring prep for #19930 . CreatureAI::EnterCombat is now called CreatureAI::JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now.
2018-01-01 16:02:22 +01:00