Commit Graph

13556 Commits

Author SHA1 Message Date
Shauren
b09390e575 Core/Spells: Corrected haste affecting GCDs to match 3.3.5 client logic 2018-12-16 18:52:45 +01:00
Giacomo Pozzoni
9a924fb9d5 Core/Misc: Log more information in asserts (#22783)
* Core/Misc: Log more information in asserts

Add a new function GetDebugInfos() to types that could trigger an ASSERT() to easily include more useful information in crashlogs.
This is an initial commit that requires many more commits to implement the new GetDebugInfos() function in all required types.
If the type doesn't have the function, the global default one is picked which doesn't log anything.

* Core/Misc: Fix dynamic build

Add missing attribute for dynamic build

* Core/Misc: Fix gcc/clang build

* Core/Misc: Rename GetDebugInfos() to GetDebugInfo()

* Core/Misc: Fix FormatAssertionMessage() adding an extra '\0'

* Core/Misc: Add GetDebugInfo support to Unit

* Core/Misc: Add GetDebugInfo support to Creature

* Core/Misc: Add more info to GetDebugInfo for Creature

* Core/Misc: Add GetDebugInfo support to GameObject

* Core/Misc: Add GetDebugInfo support to Player

* Core/Misc: Add more GetDebugInfo info

* Core/Misc: Add GetDebugInfo support to Item

* Core/Misc: Add GetDebugInfo support to Bag

* Core/Misc: Add GetDebugInfo support to Transport

* Core/Misc: Add GetDebugInfo support to TempSummon, Minion, Guardian, Pet

* Core/Misc: Add GetDebugInfo support to Map, InstanceMap

* Core/Misc: Add GetDebugInfo support to Spell

* Core/Misc: Fix build warning

* Core/Misc: Add GetDebugInfo support to Aura

* Core/Misc: Add GetDebugInfo support to UnitAI
2018-12-14 22:01:16 +01:00
Treeston
3acba6dded Core/Misc: Explicit typing for SpellAttrN enums, add nicer text to UNKs, and restore some relevant info from old comments. Final one of these. 2018-12-11 14:38:50 +01:00
Aokromes
6851ba638d Update zone_borean_tundra.cpp 2018-12-03 12:19:10 +01:00
PolarCookie
9d93504f34 Quest: Ruthless Cunning and Returning the Favor (#22806)
* Ruthless Cunning and Returning the Favor

* no more magic numbers

* now with scripted ai and condition

* travis

* more travis

* jackpoz

* now with no banner spellscripts

* typo

* Rename 9999_99_99_99_world.sql to 2018_12_03_00_word.sql
2018-12-03 08:57:23 +01:00
Aokromes
538c5b8687 Core/GameEvent: weekend xp rate (#17782)
* Core/GameEvent: weekend xp rate
by kline

* Update to recent code

* compile fix try
things of copy and paste 4 years old code xd

* more code update

* forgot to change this

* Update worldserver.conf.dist

* Added function to calculate weekend event xp rates

By greenbagels

* Cleaning using scripts

* Implement daymask and rename variables etc.

* Rename script file weekend -> boosted

* Update src/server/game/World/World.cpp

Co-Authored-By: Aokromes <Aokromes@users.noreply.github.com>

* Fix xp multiplier not applying to quest rewards

* Disable xp boost script when no boosted days selected
2018-11-28 16:44:28 +01:00
yvomsx
f1f05767ed Scripts/movement: spline - velocity (#22836) 2018-11-28 08:13:27 +01:00
Treeston
cd7b036485 Core/Misc: Update description text for SpellAttr6 and SpellAttr7 2018-11-27 15:59:36 +01:00
Treeston
d920e5b0e4 more clarity (9309988 follow-up) 2018-11-27 00:02:47 +01:00
Treeston
9309988a05 Core/Misc: Update description text for SpellAttr5 (I'm back, baby!) 2018-11-26 23:57:02 +01:00
Gildor
0ee8a77dce Core/Scripts - The Eye: Fix Kael'thas Sunstrider Mind Control, limit MaxAffectedTargets to 3 (#22828)
Closes: #22826
2018-11-24 12:55:04 -03:00
Shauren
352c4a4c68 Core/Achievements: Sync achievement reward field names with master 2018-11-21 22:37:58 +01:00
Ovah
fb1d568fba Core/Objects: properly use UPDATETYPE_CREATE_OBJECT2 when creating brand new objects in all cases. Closes #22419 (#22816) 2018-11-20 17:35:41 +01:00
Treeston
8836fc3903 Core/Misc: Update description text for SpellAttr4 2018-11-14 19:37:10 +01:00
Treeston
50f78e686c Core/Misc: Update description text for SpellAttr3 2018-11-13 01:20:51 +01:00
Treeston
9b4feaacfa Core/Misc: Update description text for SpellAttr2 2018-11-12 20:43:15 +01:00
Treeston
8cac5feb58 Core/Misc: Update description text for SpellAttr1 2018-11-12 13:05:27 +01:00
Treeston
b69ee07d50 Core/Misc: Update description text for SpellAttr0 to match actual behavior 2018-11-12 01:22:27 +01:00
Shauren
f6b0d99e2c GCC build fix
Closes #22785
2018-11-12 00:39:53 +01:00
Treeston
0068813ef9 DB/Strings: remove some now-unused language entries 2018-11-11 22:14:52 +01:00
Treeston
c16d461e16 Core/Util: Redesign SmartEnum to properly work for large enums (>64 entries) and play nice with IDEs (PR #22768) 2018-11-11 17:52:41 +01:00
Shauren
be47254a4f Core/Auras: Fixed saving auras with same spell id but different item source 2018-11-09 20:51:20 +01:00
Keader
f1a1acdc89 Scripts/Utgarde Keep: Fixed Ingvar evade in phase 2 (one more time)
Closes #21264
ScheduleEvents need happens after remove ImmuneToPc, or it will cause evade.
2018-11-09 11:02:15 -03:00
Keader
4c6f0eaa8d Scripts/ToC: Fixed Twin Valkyr stucking in progress and added hover
Closes: #22755
Update: #20961
2018-11-08 11:14:46 -03:00
Keader
87d6f62ba6 Scripts/Spells: Fixed wrong change in Drain Mana removing fear/poly effects
Update: #20234
Followup: a6673f6aa7
More Info: https://github.com/TrinityCore/TrinityCore/issues/20234#issuecomment-436970730
2018-11-08 09:19:33 -03:00
Treeston
d8fee3c46b Core/AI: Add some checks to catch if the AI changes mid-update for players. Tag #22731 #22629. 2018-11-05 20:28:42 +01:00
PolarCookie
f2df802c50 Core/Creatures: Changed creatures to become tagged by player doing any action that causes creature aggro (apart from distance) (#22759)
* This was introduced in patch 3.0.8
2018-11-04 21:59:03 +01:00
PolarCookie
93cb86b683 Spell/Script: Curse of agony (#22728)
* CoA now as spellscript

* clean up drain soul

* keader

* keader2

* Rename 9999_99_99_99.sql to 2018_11_04_00_world.sql
2018-11-04 12:40:09 +01:00
PolarCookie
a0999744ef Core/Spells: fix issues with delayed spells and auras (#22382)
* Core/Spells: fix issues with delayed spells and auras

* Make Travis Happy
2018-11-04 12:38:14 +01:00
DanVS
ae22fd6d74 Core/Entities: Handle partial state change for pets (#22014)
* handle partial state change

* range-based for loop

* fixes

* readability

* break
2018-11-04 11:42:46 +01:00
Rochet2
257ae44a20 Add rotation to .gob info (#22723)
* Add rotation to .gob info

- Add rotation (yaw, pitch, roll) to .gob info command
- Replace LANG_SPAWNINFO_DISTANCEFROMPLAYER with LANG_SPAWNINFO_ROTATION
- Fix description of .distance to describe the command arguments (the more you know..)
- Fix .gob info guid targetting nearest gameobject instead of finding with given guid
- Reorder the info data slightly
- Print location and rotation data regardless of object found in world
- Add error messages for when object is not found by guid or entry
2018-10-28 10:07:56 +01:00
Shauren
bbdf62d6e8 Core/Spells: Warning fix 2018-10-27 12:14:54 +02:00
Treeston
338e8ba0fe Core/Misc: Partial merge of 3.3.5-dbedit:
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum
- Moved a bunch of enums in SharedDefines.h to the new system
- Miscellaneous utility methods ported
2018-10-26 14:43:22 +02:00
Rochet2
0a0312b705 Core/Command: Fix gameobject turn orientation saving (#22712) 2018-10-25 12:10:27 +02:00
ccrs
7417cbc655 Core/Shared: add BattlefieldBattleId definitions
Also rename BG_TEAMS_COUNT and BattlegroundTeamId
2018-10-24 16:45:26 +02:00
Treeston
5b99ce2f83 Core/Spell: Fixed an issue with Premeditation removing itself 2018-10-22 19:50:40 +02:00
Keader
266a9c3d41 Scripts/Ulduar: Fixed Sanctum Sentry accumulating events after wipes 2018-10-22 11:11:16 -03:00
Aokromes
3ea3ed348a Script/Misc: Change some placeholders to proper texts 2018-10-21 20:14:30 +02:00
Treeston
d5993bf8e0 Core/Chat: Some fixes to talent hyperlink verification. Closes #22685. 2018-10-19 16:57:23 +02:00
Aokromes
d6d2c4efb9 Core/Spells: Hallowed Wand - Bat custome must be positive
closes #22684
2018-10-19 09:45:32 +02:00
Killyana
2dc28bc3a7 DB/GameObject: Sacred Fire of Life 2018-10-18 18:44:15 +02:00
ccrs
c8836b6eb4 Core/Movement: remove undefined method 2018-10-18 17:11:21 +02:00
Trond B. Krokli
48eba61e90 Scripts/Blackrock Depths: npc_grimstone Event_Timer improvements (#22663)
High Justice Grimstone's movement script timers improvement in Ring of the Law.

case 6 & case 7 modifications:
- Event_Timer = 5000; // originally 0

Closes #20499 (High Justice Grimstone issue)
2018-10-18 09:12:03 +02:00
Killyana
d10e42c049 DB/Gossip: Update Vaelastrasz gossip menu with the correct ID 2018-10-17 15:43:38 +02:00
Keader
6cb754ca4e Scripts/Illidari Council: Changed urand to SelectRandomContainerElement 2018-10-15 08:55:06 -03:00
Keader
9a443306fb Scripts/Black Temple: Fixed a crash on Illidari Council (#22652)
Ty Sirikfoll :)
2018-10-15 08:44:21 -03:00
PolarCookie
d13bcf36f1 [3.3.5] Scripts/Spells: Life Tap (#22638)
Closes #17559
2018-10-15 08:35:45 -03:00
ForesterDev
1e99f98327 Core/Commands: fix .appear command provide wrong undermap position (#22624) 2018-10-11 11:36:35 +02:00
ForesterDev
82a1448705 Core/Commands: Fix quest remove error message (#22623) 2018-10-11 11:16:57 +02:00
AlcDenat
2f5403d4af Split quest template locales (#22596)
* add quest locales tables
2018-10-09 16:31:27 +02:00