Commit Graph

3005 Commits

Author SHA1 Message Date
Shauren
36332d2463 Core/Misc: Remove a bunch of code from headers 2025-06-13 16:36:03 +02:00
Shauren
0f9a0accf1 Core/Misc: Kill AnyPlayerInObjectRangeCheck (duplicate of AnyUnitInObjectRangeCheck) 2025-06-08 01:07:44 +02:00
Shauren
a5ca817ff6 Core/Position: Remove Position implicit object slicing 2025-05-19 15:34:32 +02:00
Shauren
05eb63c8a2 Scripts/Misc: Update ScriptPCH content to include most commonly headers 2025-05-11 23:34:45 +02:00
Shauren
2e79d3524f Core/Spells: Rename confusing SpellState enum values
* SPELL_STATE_CASTING -> SPELL_STATE_CHANNELING (was used for "channel in progress")
* SPELL_STATE_DELAYED -> SPELL_STATE_LAUNCHED
2025-04-20 15:41:58 +02:00
Shauren
e57b0296d6 Core/Spells: Merge Spell::SetSpellValue overloads 2025-04-03 13:48:52 +02:00
Shauren
0f5d634e38 Scripts: Remove unneccessary DoublePosition from AreaBoundary 2025-02-07 12:47:39 +01:00
Shauren
dbd761d20a Core/Spells: Remove manual spell guid creation in scripts 2025-02-01 00:32:34 +01:00
Shauren
887fcbc02b Scripts/Spells: Removed unneccessary hacks - reagent consumption by triggered spells fixed in 54a83b4b68 2025-01-01 20:32:23 +01:00
Shauren
151a50d2aa Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags 2024-12-31 20:14:01 +01:00
Shauren
5e541de574 Scripts: Remove direct unit flag manipulations for UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IMMUNE_TO_NPC and UNIT_FLAG_UNINTERACTIBLE 2024-12-29 12:59:38 +01:00
ModoX
6b96facee3 Core/AI: Remove default arguments for inter-script communication 2024-12-29 00:17:07 +01:00
Shauren
884662a75a Core/Scripts: Added SpellEffectInfo argument to CalcDamage and CalcHealing spell script hooks 2024-12-21 00:40:08 +01:00
Jeremy
caccb06190 Core/Texts: Refactor Emote/Sound handling and add ConditionID for ChatTextBuilders (#30343) 2024-10-21 02:34:00 +02:00
Shauren
975e7cc072 Core/Spells: Refactor CastSpellExtraArgs
* Allow C++20 designated initializers
* Allow precise float values for SPELLVALUE_RADIUS_MOD, SPELLVALUE_CRIT_CHANCE and SPELLVALUE_DURATION_PCT
2024-09-12 21:57:16 +02:00
Shauren
ac73edc268 Core/Movement: Allow setting position or object facing targets for jump movement 2024-06-21 15:35:12 +02:00
Shauren
c968dedfee Core/Spells: Fixed implementation of SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS and removed banish special cases that were neccessary because that attribute wasn't correctly supported 2024-06-19 20:14:53 +02:00
Ovahlord
11f32a2427 Core/Creatures: moved combat pulse into heartbeat handling and implemented CREATURE_STATIC_FLAG_2_FORCE_PARTY_MEMBERS_INTO_COMBAT (#29946) 2024-04-28 16:09:43 +02:00
Shauren
dad976beb4 Core/Movement: Migrate scripts using GetMotionMaster()->MoveSmoothPath to GetMotionMaster()->MovePath and kill it (they now have the same capabilities) 2024-04-25 00:42:16 +02:00
Shauren
e1f43900d1 Core/Movement: Store delay in WaypointNode as Milliseconds instead of raw integer and revert c5097114d1 2024-04-19 15:16:17 +02:00
Meji
def601b4ff Core/Creatures: Changed the spawn health field in creature table to a percentage (#29801) 2024-03-30 20:21:28 +01:00
Jeremy
be11f42a16 Core/Battlegrounds: Move to scripts (#29799)
* Introduce new BattlegroundScript class for map/bg specific scripts
* Remove all sub, zone specific, battleground classes except Arena
* Move all bg zone scripts to new BattlegroundScripts class in script folder
* Remove ZoneScript from Battleground class
* Remove some unused hooks from Battleground
2024-03-28 19:29:22 +01:00
Shauren
94b78ebc8b Core/Players: Slightly improve neutral player faction support 2024-03-24 17:19:10 +01:00
Shauren
c2e36dea6c Core/Creatures: Implemented serverside checks for UNIT_FLAG2_INTERACT_WHILE_HOSTILE and UNIT_FLAG3_ALLOW_INTERACTION_WHILE_IN_COMBAT
* Also stop sending npc flags for hostile creatures
2024-03-03 00:51:51 +01:00
Shauren
c70bd6f5e4 Scripts/Forge of Souls: Fixed Devourer of Souls achievement worldstate expression requirement and rotate beam tick timing 2024-02-28 20:40:22 +01:00
Jeremy
409adfa7a5 Core/Battlegrounds: Isle of Conquest Rework (#29687) 2024-02-26 22:33:07 +01:00
Shauren
7751d278b1 Scripts: Removed unused global variables 2024-02-24 13:44:20 +01:00
Jeremy
9c5b8927f8 Core/Battlegrounds: Move some areatrigger handling to scripts (#29700) 2024-02-23 18:09:57 +01:00
Shauren
a748fddfa4 Core/Creatures: Implemented CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH and fixed CREATURE_STATIC_FLAG_NO_MELEE_FLEE implementation (should cause fleeing from melee range) 2024-02-22 15:47:11 +01:00
Shauren
cc7e1bdcae Core/Instances: Added back missing cases to InstanceScript::SendEncounterUnit that are supported in 3.3.5 branch 2024-02-14 15:33:59 +01:00
Jeremy
3d56cdc084 Core/Battlegrounds: Strand of the Ancients Rework (#29576) 2024-01-27 18:22:26 +01:00
Shauren
605e5f94c0 Core/Creatures: Moved autoattack handling from scripts to game 2024-01-08 22:23:12 +01:00
ModoX
12186ef857 Core/Waypoints: Refactor to split data into path and node related info in db (#29506) 2024-01-05 17:56:19 +01:00
Shauren
78bcc3f52a Core/Misc: Minor code modernization - kill std::bind 2023-12-08 20:27:41 +01:00
ModoX
3f6f683ce4 Core/Waypoints: Drop waypoint_scripts table (#29437) 2023-11-24 21:08:00 +01:00
ModoX
0e2f041728 Core/InstanceScript: Refactored door types to reflect its behavior (#29406) 2023-11-06 00:11:42 +01:00
Shauren
e9b0d347a4 Core/Spells: Store BasePoints as float in SpellEffectInfo 2023-11-03 10:38:43 +01:00
Shauren
9894f6b802 Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 20:20:00 +01:00
Shauren
4e87bd7942 Core/Spells: Named and implemented most of SpellAttr7 2023-10-21 14:49:42 +02:00
Shauren
e883b61094 Core/Spells: Implemented NoImmunity spell effect attribute 2023-09-29 21:16:50 +02:00
Shauren
41a20b1e40 Core/Achievements: Fixed achievement criteria StartEvent and FailEvent
* Criteria using StartEvent cannot be updated without that event triggering first (not only for timed achievements)
* Implemented most StartEvent and FailEvent types
* Fixed saving criteria removed by RemoveCriteriaProgress
2023-09-25 00:53:56 +02:00
Shauren
47fc3cb852 Core/Instances: Kill instance_encounters table, it is no longer neccessary 2023-09-19 10:59:04 +02:00
Shauren
4bf4ee57ff Scripts/Nexus: Removed old code to get team in instance 2023-09-18 22:39:12 +02:00
Shauren
43584b4d1d Core/Misc: Fixed doxygen docs being attached to wrong fields 2023-08-27 01:58:50 +02:00
Shauren
1dd4b38170 Core/Creatures: std::chrono-ify TempSummon 2023-08-09 11:37:17 +02:00
Shauren
98007f859b Core/Misc: Turn ChrSpecialization into enum class 2023-08-07 00:05:36 +02:00
Nyr
d2784d4c65 Core/Misc: Move TalentSpecialization together with other db2 enums and rename it to ChrSpecialization 2023-08-07 00:05:36 +02:00
Shauren
054723241e Core/Misc: Reduce number of player spec hardcoded checks 2023-08-07 00:05:36 +02:00
Shauren
8594fcfe8a Scripts/Spells: Converted some damage calculating scripts to use new hooks as examples 2023-08-02 00:12:16 +02:00
Shauren
46b67ec205 Core/Scripts: Fixed unsafe function pointer type casting in spell scripts 2023-07-27 19:37:57 +02:00