Commit Graph

241 Commits

Author SHA1 Message Date
Malcrom
dfac47a562 feat(Core/Creature): Allow 3 ids per spawn point. TESTING (#10169)
* feat(Core/Creature): Allow 3 ids per spawn point.

* Move GetRandomId to a function

* Update id to id1

* Fixed some errors crashing core and text

* Set ids to lowercase for GetRandomId function

* Update src/server/database/Database/Implementation/WorldDatabase.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2022-01-14 19:21:50 -04:00
Kitzunu
d1cc65b1c7 refactor(Core/Misc): isEmpty to IsEmpty (#10011) 2022-01-13 21:43:15 -05:00
Kitzunu
9d96adeb6b fix(Scripts/Icecrown Citadel): Ensure Deathbringer Saurfang casts Frenzy (#10048)
* cherry-pick commit (a0a64b10b5)

Co-Authored-By: Gildor <521036+Jildor@users.noreply.github.com>
2022-01-08 16:12:33 +01:00
Kitzunu
cb7e355291 refactor(Core/Misc): sin() to std::sin() (#9795) 2022-01-06 19:29:40 +01:00
Francesco Borzì
b748730bc8 refactor(Core): remove unused imports (#9969) 2022-01-02 20:22:09 +01:00
Kitzunu
913e65f97f refactor(Core/Misc): fabs() to std::fabs() (#9790)
- prefer std functions over C functions
2021-12-31 20:41:00 -03:00
Kitzunu
ac99eb48e1 refactor(Core/Misc): abs() to std::abs() (#9789) 2021-12-31 19:29:39 -03:00
Kitzunu
69683a3472 chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768) 2021-12-31 12:00:40 -03:00
Kargatum
c81891fc11 feat(Core/AI): convert SelectAggroTarget to enum class (#9893) 2021-12-28 19:13:12 -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
IntelligentQuantum
11a734bf2b refactor(Core/Scripts): Spell To Scripts (#9718) 2021-12-21 11:13:45 -03: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
Francesco Borzì
cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
Kitzunu
de49c3bead chore(Script/Misc): Cleanup some JustDied hooks (#9669) 2021-12-18 08:26:43 -03:00
Kitzunu
9be67e508b refactor(Scripts/Zone): move crystalsong_forest to new system (#9700) 2021-12-17 18:07:28 +01:00
Kitzunu
05a2d5baa8 refactor(Scripts/AhnKahet): new script system (#9040) 2021-11-28 04:23:19 -03:00
patou01
801a20fce2 refactor(Core): Clean-up after FD (#8586) 2021-11-28 03:04:14 -03:00
acidmanifesto
29f49108a5 chore(Core): Remove unnecessary slang Cosmetic (#9325)
* Remove unnecessary slang

Removes ZOMG! that is used in the src in logging and notes. Completely Unnecessary. Contributes to nothing useful. Inflates source. Not needed at all in any shape or form. Not Developer Lingo either.

* Further Clean Up

Removed Profanity

* sensible grammar correction

* More ZOMG! removal
2021-11-25 04:31:54 -03:00
Kargatum
f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
Kitzunu
6a430cd2f9 fix(Scripts/Misc): Replace some AddItem/CreateItem with spells (#9006)
Co-authored-by: offl <11556157+offl@users.noreply.github.com>
2021-11-20 09:59:52 -03:00
sschepens
b7f8083915 feat(Core/Misc): change how Position struct is retrieved (#9017)
Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bc changes by return a Position object instead of accepting a Position parameter by reference.

Cherry pick of 2585e799f9
2021-11-10 23:43:00 +01:00
Kitzunu
28a496bfa5 fix(Script/Spell): Dark Reckoning (#9024)
Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
2021-11-10 00:21:25 +01:00
Kitzunu
8b47540745 fix(Scripts/Misc): AhnKahet instance script typo (#9055) 2021-11-09 12:39:04 -03:00
Kitzunu
24f9f993cc refactor(GameObjectAI): Change self-accessor to "me" (#9041) 2021-11-08 22:06:04 +01:00
Kitzunu
430fa147fd feat(Scripts): Implement generic script loader and registry macros (#8976)
* cherry-pick commit (fb87ac8e8d)

* cherry-pick commit (7d4fbf706a (diff-ea1c86c26019127a4e99686cd9029f9ec3e8193f2761b262c2475668edc06764))

* cherry-pick commit (75a6a7a0ad (diff-ea1c86c26019127a4e99686cd9029f9ec3e8193f2761b262c2475668edc06764))

Co-Authored-By: Treeston <14020072+Treeston@users.noreply.github.com>
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Treeston <14020072+Treeston@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-11-07 02:21:00 -03:00
Skjalf
d35c6b6022 feat(Core/Scripts): implemented a guid map in InstanceScript, this wa… (#8781)
Co-authored-by: joschiwald <joschiwald.trinity@gmail.com>
2021-11-02 19:55:50 +01:00
Malcrom
f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
Malcrom
b6ad5bf8ad fix(Scripts/Northrend): Last Rites [Quest 12019] (#8691) 2021-10-31 16:41:21 +01:00
Malcrom
c0b52da890 fix(Core/Script) Quest 11590: Abduction (#8668)
Rewrote quest from sniff to be more like official.  MoveInLineOfSight still not working posting this here looking for help with it.
2021-10-24 00:26:46 -03:00
Malcrom
3f729f3c48 fix(Core/Script) Quest 11794: "The Hunt is on" (#8650)
Move Gossip to database and cleanup code.
2021-10-24 00:08:15 -03:00
Malcrom
15494554bc refactor(Script/SAI): Move Corastrasza script to SAI (#8616)
* Core/SAI Corastrasza

Moved core script to SAI. There is a core issue with SAI cast on envoker being cast on the npc and not the player. Do not push until core issue is fixed.

* Update rev_1634483390934220500.sql

* Update rev_1634483390934220500.sql

* Update rev_1634483390934220500.sql

Spells now work properly
2021-10-19 23:05:30 +02:00
Petric
e8a6c4fa75 feat(Scripts/SAI): Ported Riding the Red Rocket Quest script from TCO (#3704)
* feat(CORE/Script): Ported Riding the Red Rocket Quest script from TCO

Taken from 20b3feb559
2021-10-18 21:10:26 +02:00
SKingOWN
12185d8f03 fix(Core/Script): Valithria Dreamwalker event reset over 75% heal. (#8286) 2021-10-17 01:15:24 +02:00
Kitzunu
bc82f36f1f refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +02:00
UltraNix
cb71cc0131 fix(Core/Units): clear emote state on attack rather than on combat st… (#8170)
- Closes #6281
2021-10-14 16:18:51 +02:00
Ragelezz
c8ff0bcc4a fix:(Core\Scripts):Krikthir the Gatewatcher minions position (#8120) 2021-10-12 14:51:30 -03:00
Skjalf
1e57b6fb99 fix(Core/Spells): add several missing null checks for the DamageInfo struct to fix a crash (#8322) 2021-10-10 16:07:14 +02:00
UltraNix
66809383d1 fix(Core/Spells): add several missing null checks for the DamageInfo struct to fix a crash - Part II. (#8376) 2021-10-10 15:56:42 +02:00
UltraNix
80570efc29 fix(Scripts/Instances): fix some bosses flying animations (#7851)
- Closes #4900
2021-10-10 00:58:19 +02:00
UltraNix
3223f90bcb feat(Core/Spells): add helper to get clean and unmitigated damage for pro… (#7244) 2021-10-05 23:59:57 +02:00
Kitzunu
9fbdffee47 refactor(Core/Map): Use std::chrono for SetZoneOverrideLight (#6489)
* cherry-pick e33c4b8f7f

Co-Authored-By: HelloKitty <5829095+HelloKitty@users.noreply.github.com>
2021-10-03 22:07:26 -03:00
Kargatum
52aa0e9966 feat(License): add new headers information about license (#7941)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-09-30 13:40:52 +07:00
Artem
87a4e493a3 fix(Core/Script): 'Battle at Valhalas' quests done automatically (#7036)
* fix(Core/Script): 'Battle at Valhalas' quests done automatically

Battle at Valhalas series of quests, get to automatically complete

Closes #6753

* Refactoring

* Refactoring

* Refactoring PlayerUpdates.cpp

Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com>

* Refactoring PlayerQuest.cpp

Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com>

* Update src/server/scripts/Northrend/zone_icecrown.cpp

Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com>
2021-09-25 16:59:49 +02:00
Silker
e2dd6b2bd8 fix(scripts/Thaddius): Update initial unit_state (#7886) 2021-09-20 04:15:24 -06:00
UltraNix
cb790b0d48 fix(Scripts/ToC): remove completely invalid code about removing loot (#7814)
- Closes #7804
2021-09-16 14:33:05 +02:00
Kitzunu
2f449326e0 refactor(Core): Rename ...Manager to ...Mgr (#6910)
* Rename MapManager.h to MapMgr.h

* Rename BanManager.h to BanMgr.h

* Rename MapManager.cpp to MapMgr.cpp

* Rename BanManager.cpp to BanMgr.cpp

* Rename MapRefManager.h to MapRefMgr.h

* Rename ThreatManager.h to ThreatMgr.h

* Rename GridRefManager.h to GridRefMgr.h

* Rename ThreatManager.cpp to ThreatMgr.cpp

* Rename GroupRefManager.h to GroupRefMgr.h

* Rename HostileRefManager.h to HostileRefMgr.h

* Rename HostileRefManager.cpp to HostileRefMgr.cpp

* Rename MMapManager.h to MMapMgr.h

* Rename FollowerRefManager.h to FollowerRefMgr.h

* Rename VMapManager2.h to VMapMgr2.h

* Rename IVMapManager.h to IVMapMgr.h

* Rename MMapManager.cpp to MMapMgr.cpp

* Rename VMapManager2.cpp to VMapMgr2.cpp

* Rename RefManager.h to RefMgr.h

* Rename WaypointManager.h to WaypointMgr.h

* Rename WaypointManager.cpp to WaypointMgr.cpp

* Rename MPQManager.h to MPQMgr.h

* Rename MPQManager.cpp to MPQMgr.cpp

* Rename IMMAPManager.h to IMMAPMgr.h

* fix build

* Update Main.cpp

* chore(Core/Misc): Remove toxic language

* Revert "chore(Core/Misc): Remove toxic language"

* fix build

* build
2021-09-15 17:50:28 +02:00
Viste
a9796af174 fix(Core/Misc): bunch of crashfixes (#7307) 2021-09-14 14:38:56 +02:00
UltraNix
7406a01ac3 fix(Core/Spells): several improvements to cooldowns (#7559)
- Reworked spell category cooldowns.
- Implemented category cooldowns for pets.
- Properly shows pet spell cooldowns in player's UI.
- Corrected pet spell cooldowns with infinity duration.
- Do not add/remove infinity spell cooldown on aura apply/remove if casted by item.
- Closes #5263
2021-09-13 20:57:48 +02:00
CrazyJDev
adab416f29 fix(Scripts/Ulduar): Hodir boss fight issue (#5897)
Co-authored-by: Silker <61223313+Si1ker@users.noreply.github.com>
2021-09-13 00:12:29 +02:00
UltraNix
45218224b4 fix(Core/Spells): show Execute/Slam misses/dodges/parries in combat log (#7494)
- Closes #7428.
2021-08-26 11:45:22 +02:00