Commit Graph
6108 Commits
Author SHA1 Message Date
Shauren de592386dc Core/Spells: Autorepeat casting fixes
* Fixed cast bars of ranged spells not disappearing when canceled while autoshooting
* Replaced hacky 500ms delay on non auto shot autorepeat spells with native spell cast time (wands have 500ms cast time)
* Update cooldowns before attempting to cast autorepeat spells (for cases when cooldown ends on the same server tick as cast attempt)
2022-05-08 15:54:15 +02:00
Shauren 538fa8e97f Core/Spells: Cleanup movement checks in spells - use correct interrupt flags 2022-05-07 23:31:55 +02:00
Shauren 0620b829b2 Core/Spells: Implemented SPELL_ATTR6_DELAY_COMBAT_TIMER_DURING_CAST 2022-05-07 20:09:25 +02:00
Shauren 50eff8c238 Core/Spells: Implemented SPELL_ATTR6_NO_PUSHBACK 2022-05-07 00:18:01 +02:00
Shauren e4f8403d7a Core/Spells: Implemented SPELL_ATTR6_DO_NOT_RESET_COOLDOWN_IN_ARENA 2022-05-06 23:12:44 +02:00
tisk 24434c687d Core/Spells: Implemented SPELL_ATTR6_ALLOW_EQUIP_WHILE_CASTING 2022-05-06 23:01:36 +02:00
Shauren 4bc02e3744 Core/Items: Use correct error message when swapping weapons in combat too quickly 2022-05-06 22:17:16 +02:00
Shauren 94aac14b4d Core/Spells: Rename SpellAttr6 to use official attribute names 2022-05-06 20:23:13 +02:00
Shauren d800c87137 Core/Misc: Remove implicit conversions from RaceMask class, fixes racemask check failing during loading from db 2022-05-06 18:45:51 +02:00
Shauren 076c63c766 Core/Spells: Implemented SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED 2022-05-02 19:29:51 +02:00
Shauren d71ca7a8f5 Core/Spells: Implemented SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK 2022-05-02 18:20:17 +02:00
Shauren 8a219b7e39 Core/Spells: Corrected implementation of SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL - it allows casting other spells while channeling, not allows movement while channeling 2022-05-02 16:15:28 +02:00
Shauren d818add0e2 Core/Auras: Added support for SPELL_ATTR5_LIMIT_N limit to other number than just 1 2022-05-02 16:14:41 +02:00
Shauren 738f285432 Core/Spells: Rename SpellAttr5 to use official attribute names
* Implemented SPELL_ATTR8_HASTE_AFFECTS_DURATION
2022-05-02 01:11:38 +02:00
Shauren 8d16a79dea Core/Spells: Rename SpellAttr4 to use official attribute names
* Corrected implementation of SPELL_ATTR4_CLASS_TRIGGER_ONLY_ON_TARGET
* Implemented SPELL_ATTR4_NO_HELPFUL_THREAT
* Implemented SPELL_ATTR4_NO_PARTIAL_IMMUNITY
* Implemented SPELL_ATTR4_ALLOW_PROC_WHILE_SITTING
* Implemented SPELL_ATTR4_USE_FACING_FROM_SPELL
* Implemented SPELL_ATTR4_BOUNCY_CHAIN_MISSILES
* Implemented SPELL_ATTR4_AURA_NEVER_BOUNCES
* Implemented SPELL_ATTR4_AURA_BOUNCE_FAILS_SPELL
* Implemented SPELL_ATTR4_AURA_IS_BUFF
* Implemented SPELL_ATTR5_MELEE_CHAIN_TARGETING

* Implemented SpellEffectAttributes::ChainFromInitialTarget
2022-05-01 20:01:13 +02:00
Shauren 88d7b58a3d Core/Spells: Rename SpellAttr3 to use official attribute names
* Implemented SPELL_ATTR3_NO_AVOIDANCE
* Implemented SPELL_ATTR3_ONLY_PROC_OUTDOORS
* Implemented SPELL_ATTR3_ONLY_PROC_ON_CASTER
* Implemented SPELL_ATTR3_PVP_ENABLING
* Implemented SPELL_ATTR3_SUPPRESS_CASTER_PROCS
* Implemented SPELL_ATTR3_SUPPRESS_TARGET_PROCS
2022-04-30 16:57:32 +02:00
Shauren dda375b986 Core/Spells: Rename SpellAttr2 to use official attribute names
* Corrected implementation of SPELL_ATTR1_ALLOW_WHILE_STEALTHED
* Implemented SPELL_ATTR2_RETAIN_ITEM_CAST
* Implemented SPELL_ATTR2_ALLOW_WHILE_INVISIBLE
* Implemented SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE
* Implemented SPELL_ATTR2_PROC_COOLDOWN_ON_FAILURE
* Implemented SPELL_ATTR2_NO_TARGET_PER_SECOND_COSTS
* Implemented SPELL_ATTR2_DO_NOT_REPORT_SPELL_FAILURE
* Implemented SPELL_ATTR1_REQUIRE_ALL_TARGETS
* Implemented SPELL_ATTR2_CHAIN_FROM_CASTER
* Implemented SPELL_ATTR2_NO_ACTIVE_PETS
* Implemented SPELL_ATTR2_ENCHANT_OWN_ITEM_ONLY
2022-04-28 18:31:26 +02:00
Shauren c88b602a2c Core/Spells: Rename SpellAttr1 to use official attribute names
* Implemented SPELL_ATTR1_NO_SKILL_INCREASE, SPELL_ATTR1_AURA_STAYS_AFTER_COMBAT, SPELL_ATTR1_DISPEL_ALL_STACKS
2022-04-25 22:16:56 +02:00
Shauren a31e681944 Core/Spells: Rename SpellAttr0 to use official attribute names 2022-04-24 18:40:10 +02:00
Shauren 5e90f188f8 Core/Corpses: Fixed crash in corpse creation 2022-04-24 14:31:55 +02:00
Shauren 597485f1d4 Core/GameObjects: Implement more gameobject gameevent uses 2022-04-24 00:56:00 +02:00
Shauren 41a04a0c49 Core/Scripts: Begin unifying triggering gameevents (not the game_event db stuff) 2022-04-24 00:16:13 +02:00
Shauren fddd6cdf3f Core/Objects: Initialize position data and zone/instance script for all worldobject types (except player) 2022-04-23 23:03:22 +02:00
Shauren 372c84e998 Core/Items: Implemented item effect trigger type 7 (On Looted) 2022-04-22 20:57:05 +02:00
Shaurenandfunjoker fda65981c7 Core/Conversations: Conversation actor improvements
* Store NoActorObject in database
* Support adding player as conversation actor using database
* Send actor id in packets

Co-authored-by: funjoker <[email protected]>

Closes #27911
2022-04-19 22:15:12 +02:00
Shauren 52fb467031 Core/Units: Include SPELL_AURA_MOD_FACTION auras when restoring faction (either on aura removal or .gm off) 2022-04-16 12:15:37 +02:00
Shauren d1209a8388 Core/Players: Add player race argument to Player::LearnSkillRewardedSpells 2022-04-16 12:15:37 +02:00
Shauren 342eefcb36 Core/Auras: Remove aura 490 implementation (purpose unknown, needs more spell examples) 2022-04-16 12:15:37 +02:00
Shauren 5558769405 Core/Battlegrounds: Replaced overriding m_team with more fine grained approach 2022-04-16 12:15:37 +02:00
Shauren 798693c0b8 Core/Battlegrounds: Set PLAYER_FLAGS_EX_MERCENARY_MODE for mercenary players 2022-04-16 12:15:37 +02:00
Shauren 84486ded67 Core/Battlegrounds: Store mercenary status separately from the aura obtained from gossip as it can be removed at any time 2022-04-16 12:15:37 +02:00
Traesh 87723e32e2 Core/Battlegrounds: Implement mercenary system 2022-04-16 12:15:37 +02:00
Shauren 98e848436d Core/Misc: Apply various cosmetic changes that were made to 3.3.5 branch when porting master branch code there 2022-04-01 20:36:30 +02:00
Shauren b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00
Shauren 4eba978670 Core/Misc: Rename SetXXXFlags updatefield functions to ReplaceAllXXXFlags 2022-03-26 18:59:44 +01:00
HelloKitty 194a0daed5 Core/Object: Fix WorldObject::SetZoneScript unsafe cast to InstanceMap (#27877)
(cherry picked from commit e9992066a5ccd7f085a56de09ea027240e8da873)
2022-03-26 16:01:01 +01:00
offl 050f55b62f Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks (#27704)
(cherry picked from commit 3dca705acc953d20e4a43d4c2b3c97a84e5ab346)
2022-03-26 15:15:46 +01:00
Giacomo Pozzoni 8c25abca72 Core/AI: Fix crashes caused by charmed Creatures having null AI for 1 map update tick (#27434)
Implement using ScheduledChangeAI instead of nullptr to signal a required AI change

(cherry picked from commit 19e99db821ba5975e88ec160df3f4ff78ed562b0)
2022-03-24 22:35:05 +01:00
offl 52bb230e4c Core/SAI: Use GetBaseObject as second param of SMART_ACTION_ACTIVATE_GAMEOBJECT & reorder GameObjectActions (#27461)
(cherry picked from commit 87cb0a4212535731749aebb2d3fe8f5c3000be92)
2022-03-24 21:55:46 +01:00
Shauren 56dd1243fd Core/Units: Rename AnimationTier to AnimTier for consistency between branches 2022-03-24 20:44:26 +01:00
Shauren 57d9d16442 Core/Auras: Properly clean up partial charm applications
Ref #24876

(cherry picked from commit 9174281b9253712982273b9b703d9fbac5cef9cd)
2022-03-23 00:06:51 +01:00
Shauren d6ec0afc78 Core/Vehicles: Add additional logging to track issue #24876
(cherry picked from commit f20b7a10805f2f989e1c44648e1e6ecd9826ef55)
2022-03-22 00:17:09 +01:00
Shauren 1d30f7ae2b Core/Misc: Add TempSummon timer to GetDebugInfo
(cherry picked from commit 7b9b785c5138c279fea95a9a3c193c0997bf4c16)
2022-03-22 00:16:57 +01:00
Giacomo Pozzoni 791b759332 Core/SAI: Add SMART_ACTION_ACTIVATE_GAMEOBJECT action (#27216)
Closes #27196

(cherry picked from commit 0817be8f76dead48e2c0eeb7d5a7434a452f0dcf)
2022-03-21 22:59:21 +01:00
Lucas Nascimento 4ed918fcb3 Core/Combat: Fixed combat after remove charm (#27248)
https://github.com/TrinityCore/TrinityCore/pull/27038#issuecomment-958784361
(cherry picked from commit 0cc0b3f926a55fd70a51a90631dde99fbb8c6b8b)
2022-03-21 22:02:34 +01:00
Shauren 1d9ed7fb46 Core/Creatures: Refactor ObjectMgr::ChooseCreatureFlags to allow selecting only 1 flag field
(cherry picked from commit e4430cd2bedf2079961bd1a30ba9f5f1de93af82)
2022-03-21 00:07:29 +01:00
Keader 381c543c60 Core/Unit: Fixed wrong combat stop when set charm
(cherry picked from commit 9b354c6bebdf9fe9c9842330447162edc63cc751)
2022-03-20 23:50:55 +01:00
offl 7a0268d4f1 Core/Scripting: Get rid of ModifyVehiclePassengerExitPos (#27126)
(cherry picked from commit d7adc50daa5a20142e0f39a9f65d39869525fd0e)
2022-03-20 16:27:10 +01:00
Lucas Nascimento 7de20bcc1c Entities/Unit: Fixed wrong combat stop when remove charm (#27038)
(cherry picked from commit fa3a62ae4e890dc526f2f0474e3469ccddb15edf)
2022-03-20 16:03:44 +01:00
Jinnaix 01da436206 Core/Creature: Formation reset (#27040)
* Core/Creature: Formation reset

* Update CreatureGroups.cpp

whoops

* Core/Creature: Formation reset
Keep dismiss functionality

(cherry picked from commit 7051aab4219765e0c9faac0ce7bde0160451712a)
2022-03-20 00:19:42 +01:00