Commit Graph

36 Commits

Author SHA1 Message Date
Stefano Borzì
51330f54d8 refactor(Core/Misc): remove the ternary operator when used improperly (#3327) 2020-09-10 12:29:23 +02:00
Kitzunu
1f89282b22 refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-31 11:55:09 +02:00
Kitzunu
c79a475708 fix(DB/SmartScriptMgr): Move CWZ valid check (#3206) 2020-08-24 17:20:22 +02:00
Kitzunu
39f2d13f66 fix(Core/SmartScripts): Disallow Gob to use Combat with Zone (#3199)
* Proper  fix for https://github.com/azerothcore/azerothcore-wotlk/issues/3028
2020-07-19 20:46:14 +02:00
P-Kito
2514f8fc9a feat(Core/AI): CU_SAI - Custom Target Options (#2879)
NEW:
* SMART_TARGET_PLAYER_WITH_AURA (spellid, negation?, distMax, distMin) - if target.O is set it will resize the list of targets to target.o
* SMART_TARGET_RANDOM_POINT (range, amount (for summon creature), self (creature is middle else use xyz) (ONLY USED FOR SUMMON CREATURE OR MOVE/JUMP TO POS ACTIONS FOR NOW)

MODIFIED:
* SMART_ACTION_SUMMON_CREATURE now possible to spawn multiple creatures with SMART_TARGET_RANDOM_POINT
* SMART_ACTION_MOVE_TO_POS/JUMP_TO_POS now possible to move to a random point with SMART_TARGET_RANDOM_POINT
* SMART_TARGET_PLAYER_RANGE no longer targets GMs or dead targets and when target.o is >0 it will try all possible targets in max instead of min-maxing


Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2020-04-18 16:59:52 +02:00
P-Kito
f381bd47cb feat(Core/AI): CU_SAI - set creature in combat outside of dungeon (#2878) 2020-04-17 16:29:47 +02:00
P-Kito
6a410efa36 feat(Core/AI): CU_SAI - Custom Event Options (#2881) 2020-04-17 00:40:06 +02:00
P-Kito
8aa80eef18 feat(Core/SAI): new Actions + Polar Coords System Offset Relocating (#2880) 2020-04-16 11:39:45 +02:00
Stefano Borzì
ec91c779f3 fix(Core/SAI): SMARTCAST_COMBAT_MOVE (#2672)
Co-authored-by: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com>
2020-03-14 17:41:03 +01:00
Kargatum
4a8f1de538 feat(Core/Misc): remove and replace ACE_Singleton (#2418) 2019-12-21 00:29:29 +07:00
Viste
e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
mik1893
7954a2a07e Creature type flags (#2195)
fix(Core/Creature): refactoring creature type flags and adding CREATURE_TYPE_FLAG_CAN_COLLIDE_WITH_MISSILES - closes #1984
2019-08-16 12:15:14 +01:00
Stoabrogga
8d4a694e82 fix(Core/SAI): fix parameters for action type "SMART_ACTION_UPDATE_TEMPLATE" (#2131) 2019-07-28 15:04:22 +02:00
Stoabrogga
765479798e feat(Core/SAI): improve SAI logging for missing creature text (#2023) 2019-06-29 16:13:31 +02:00
Pondaveia
78b897f852 fix(Core/SAI) Add missing parameters for SMART_ACTION_MOVE_TO_POS (#1813)
* Imported changes from TC

Game/AI: Implement ContactDistance for ACTION_MOVE_TO_POS

* Contactdistance

* We don't have disablePathFinding

* Update src/server/game/AI/SmartScripts/SmartScript.cpp

Co-Authored-By: Pondaveia <43385840+Pondaveia@users.noreply.github.com>

* Update src/server/game/AI/SmartScripts/SmartScript.cpp

* Update SmartScriptMgr.h

* Update src/server/game/AI/SmartScripts/SmartScript.cpp

Co-Authored-By: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com>
2019-05-16 02:49:11 +02:00
Alan
3b82a3d903 fix(Core/Battlegrounds): log errors about creatures not found (#1587) 2019-04-07 13:19:45 +02:00
Stoabrogga
6380500b33 fix(DB/Core): quest chain leading to "Battle for the Undercity" (#1629) 2019-03-26 20:01:52 -03:00
Kargatum
824a80005c Refactor(Core/Misc): Remove remaining COMPILER_HAS_CPP11_SUPPORT related macros (#1627)
* Delete macros UNORDERED_MAP
* Delete macros UNORDERED_SET
2019-03-26 00:01:56 +07:00
Kargatum
b6cb9247ba Refactor(Core/Gossip): Replacing old macros with new (#1338)
* Correct support new macro
2019-03-25 21:10:57 +07:00
Stoabrogga
54b23ce209 fix(DB/Core): play event after quest "Hero of the Mag'har"; extend SAI to play music (#1570) 2019-03-19 09:04:40 +01:00
Francesco Borzì
2f1c01a1fd feat(SmartAI): display error on unsupported targets + align TC enums (#1349) 2019-01-28 20:23:35 +01:00
Stoabrogga
acf47073ab feat(SmartAI): Implement action type 115 "SMART_ACTION_RANDOM_SOUND" 2019-01-26 22:16:16 +00:00
Francesco Borzì
206feacab3 feat(SmartAI): improve add quest action (#1333) 2019-01-24 19:07:13 +00:00
Francesco Borzì
c62fec7f77 feat(SmartAI): handle unused SmartActions (#1335)
Emit error when there is a SmartAction in the DB that is not yet supported in AzerothCore.
Emit error when there is a SmartAction in the DB that is not supposed to be used in version 3.3.5a.
2019-01-23 15:51:08 +01:00
Francesco Borzì
8931ae74ba refactor(SmartAI): move AC-only SMART_ACTIONs to avoid conflicts with TC 2019-01-20 19:57:21 +01:00
Francesco Borzì
386b334337 refactor(SmartAI): align some SMART_ACTION(s) to TC (#1329) 2019-01-20 14:09:14 +01:00
Francesco Borzì
07d5314a8b refactoring(SAI): add event_param5 and target_param4 (#1324) 2019-01-20 01:02:01 +01:00
Jinyang li
4b6342b42f Core/NPC: Creatures now alert when they detect stealthed players (#1060)
Creatures stop when they detect a stealthed player like in retail.
Closes #1020
2018-10-31 20:25:23 +01:00
Nefertumm
dd300003e2 Update license links (#783) 2018-03-12 10:54:57 +01:00
Kaev
05cd8c8c61 Move area trigger storage from DBC to database (#742)
Renamed AreaTrigger + related stuff to AreaTriggerTeleport
2018-01-02 22:08:08 +01:00
Yehonal
403ed2600f Merge branch 'master' of https://github.com/azerothcore/azerothcore-wotlk into dir-restructure 2017-12-21 11:26:43 +01:00
Yehonal
17332304fd Using TC structure allowing easier patches importing 2017-12-21 00:20:29 +01:00
Yehonal
b0c8eceb08 Refactoring part 2 [W.I.P] 2016-08-12 02:38:26 +02:00
Yehonal
1aef789c85 [Core/Cmake] Scripts are now added dynamically
You can now add your scripts using cmake inside your module
instead patch core cpp files
2016-08-07 12:21:52 +02:00
Yehonal
f6eefedcd5 converted all tabs to 4 spaces 2016-06-26 19:23:57 +02:00
Yehonal
e8e94a0a66 First Commit
For Azeroth!
2016-06-26 10:39:44 +02:00