Commit Graph

764 Commits

Author SHA1 Message Date
ModoX 88bbd27f8d Core/Entities: Added possibility to inherit StringIds from other entities (#29908)
* also implicitly do so for personal summons
2024-04-10 20:03:14 +02:00
ModoX 9959a1373a Core/Entities: Update StringId assignment to use StringIdType 2024-04-09 16:39:15 +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
Shauren 94b78ebc8b Core/Players: Slightly improve neutral player faction support 2024-03-24 17:19:10 +01:00
Shauren fccf6fb72b Core/Objects: Implemented vignettes 2024-03-09 00:54:27 +01:00
Shauren 45ee989c70 Core/vmaps: Removed vmap lookup functions duplicating functionality of each other 2024-03-07 00:23:52 +01:00
Shauren 0c32277139 Core/Auras: Feign death will no longer cause creatures immune to it to drop combat (and then reenter it because the unit feigning death is considered valid) 2024-03-04 16:14:23 +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 e1e53ee06e Core/Creatures: Fixed sparring 2024-03-01 18:38:49 +01:00
Ovahlord 4e8e3d8fb8 Core/Creature: corrected swimming toggle behavior for amphibious creatures 2024-03-01 00:15:14 +01:00
Shauren 0139ec41bb Core/Creatures: Allow toggling CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS 2024-02-29 18:09:10 +01:00
Ovahlord c541eda54d Core/Creatures: implemented most movement related static flags and migrated existing movement data into static flags (#29541)
* implemented CREATURE_STATIC_FLAG_AQUATIC - creatures cannot leave liquids
* implemented CREATURE_STATIC_FLAG_AMPHIBIOUS - creatures can enter and leave liquids but remain on the ocean floor when swimming is not enabled until engaged
* implemented CREATURE_STATIC_FLAG_FLOATING - creatures have their gravity on spawn / reset disabled
* implemented CREATURE_STATIC_FLAG_SESSILE - creatures are rooted in place
* implemented CREATURE_STATIC_FLAG_CAN_SWIM - creature can swim in liquids
* implemented CREATURE_STATIC_FLAG_3_CANNOT_SWIM - Amphibious creatures cannot toggle on swimming
* implemented CREATURE_STATIC_FLAG_3_CANNOT_TURN - Creatures cannot turn at all
* implemented CREATURE_STATIC_FLAG_4_PREVENT_SWIM - Amphibious creatures won't toggle on swimming until their victim starts leaving the ocean floor
* partially implemented CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER
* deprecated CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE as this flag was a hackfix to a wrong implementation that is now gone
2024-02-29 14:43:37 +01:00
Shauren 9463933eda Core/Creatures: Implemented CREATURE_STATIC_FLAG_2_ALLOW_MOUNTED_COMBAT and overriding default mount from creature addon 2024-02-27 14:05:47 +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 305cb9a81a Core/Creatures: Prevent resetting creature sparring health thresholds on evade if it was changed to a custom value by a script 2024-02-20 22:26:29 +01:00
Shauren 8dc494c1ae Core/Creatures: ed0b621d15 followup 2024-02-13 01:03:57 +01:00
Shauren 6543d23a1a Core/Creatures: Set InteractSpellID for npc spellclick 2024-02-10 14:20:09 +01:00
Shauren 3e1eec081f Core/Creatures: Implemented CREATURE_STATIC_FLAG_4_NO_BIRTH_ANIM 2024-02-05 21:39:25 +01:00
Shauren f70a5817e1 Core/Creatures: Move immunities to separate table and implemented setting immunties to dispel, spell effects, aura types, aoe and chain targeting 2024-01-30 21:29:55 +01:00
Shauren a4a4d010a0 Core: Updated to 10.2.5 2024-01-21 22:25:10 +01:00
Ovahlord ba627c1d1c Core/Creatures: fixed a logic mistake in personal skinning loot that was causing creatures without loot to despawn instantly (#29586) 2024-01-16 23:49:03 +01:00
Ovahlord ea093fef27 Core/Units: moved CharmInfo class and its definitions into a own file (#29583) 2024-01-16 18:43:32 +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
Teleqraph bfbda8dcce Core/Creatures: Refactor CreatureEliteType (#29525)
* Turn into enum class with official names
2023-12-28 19:11:54 +01:00
Shauren 7cafeb46b3 Core/Creatures: Don't require creature.modelid to be one of linked creature_template models 2023-11-26 00:20:13 +01:00
Shauren 73e0b3e77c Core/Creatures: Taxi improvements
* Fixed flight master minimap icon
* Fixed crash on Argus
* Implemented teleport taxi nodes

Closes #29389
2023-10-28 22:13:59 +02:00
ModoX 8c26b9350d Core/Creature: Fixed logic for npcflag, unitflags when saving creatures to db
* 06ea822a31 followup
2023-08-31 16:15:26 +02:00
ModoX 06ea822a31 Core/Creature: Save npcflags and unitflags as NULL in db if they are equivalent to creature_template entry
Closes #29297
2023-08-31 13:18:59 +02:00
Shauren 982feb5082 DB/Pets: Removed invalid spells from creature_template_spell
Closes #29149
2023-08-16 20:04:20 +02:00
Teleqraph 88ff97c1f9 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-07-20 19:09:27 +02:00
Teleqraph 53f9abec14 Core/Unit: Added helper functions to modify UNIT_FLAG2_CANNOT_TURN (#29160) 2023-07-20 12:20:15 +02:00
Shauren 074c5da6e4 Core/Pets: Fixed crash when summoning hunter pets 2023-07-05 00:18:55 +02:00
Shauren 3e641606e7 Core/Creatures: Added missing assignment 2023-06-18 21:18:37 +02:00
Meji bb68fd73b4 Core/Creatures: Drop dynamic flags from creature and creature_template (#29041) 2023-06-18 19:18:56 +02:00
Shauren 7282a17725 Core/Creatures: Added db fields to hold creature static flags 2023-06-18 16:36:00 +02:00
Shauren 0fb8765a66 Core/Items: Item bonus generation improvements
* Pass ItemContext to item creation wherever possible
* Support scaling item levels with m+ keystone levels (not used currently)
* Fixed item link validation when client sends it as default uninitialized bonus list with context only
* Support scaling items depending on current active season (seasons not implemented)
* Implemented content tuning redirection
2023-06-17 16:29:59 +02:00
Meji 06d0b16f15 Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931) 2023-05-29 00:01:23 +02:00
Shauren 7f98b71698 Core/Creatures: Fixed some creatures having 0 max health (and being unkillable) 2023-05-21 13:31:42 +02:00
Shauren 1325e0c4b2 Core/Units: Power handling improvements
* Don't include creature_template power multipliers in CreateMana updatefield
* Allow NPCs to have power types other than mana
* Add missing Essence config regeneration rate
* Fixed demon hunter powers not decaying immediately after combat
* Fixed some powers decaying immediately out of combat after energizing (for example holy power)
* Replace hardcoded list of powers to set to full on levelup with a db2 flag check
* Updated Creature::GetPowerIndex for 10.1 new power types
2023-05-09 23:16:30 +02:00
Jeremy 205aba1ff3 Core/Battlegrounds: Moved AreaSpiritHealer resurrection handling to respective npc flags (#28508)
* UNIT_NPC_FLAG_AREA_SPIRIT_HEALER
* UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL
2023-05-09 05:20:35 +02:00
ModoX 920b9a99bd Core/Unit: Named npc flags UNIT_NPC_FLAG_AREA_SPIRIT_HEALER and UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL 2023-05-06 14:39:13 +02:00
Meji d6133c78de Core/Units: Calculate HoverHeight from model data (#28899) 2023-04-09 18:17:08 +02:00
ModoX 209a36424e Core/Creature: Added missing nullcheck 2023-04-06 01:25:49 +02:00
ModoX 0750b7f845 Core/Creature: Implemented sparring with max health percent thresholds (#27198)
Co-authored-by: Ovah <dreadkiller@gmx.de>
2023-04-06 01:01:02 +02:00
ModoX 36044a9470 Core/Creature: Added possibility to give creatures multiple gossip menu ids and control them via conditions (#28159) 2023-04-05 23:49:46 +02:00
Meji 562f65f3f8 Core/Creatures: Compute the level from ContentTuning (#28871) 2023-03-31 01:01:35 +02:00
Meji 81ea6f54d9 Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale (#28863) 2023-03-30 18:54:27 +02:00
Meji cc57c9dad5 Core/Creatures: Improved movement interruption while casting spells (#28845) 2023-03-24 12:27:01 +01:00
Shauren 512f5138d4 Core/Creatures: Use togglable CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS instead of equivalent flag from creature_template.type_flag 2023-03-17 23:02:47 +01:00