Commit Graph

5295 Commits

Author SHA1 Message Date
Ovah
ee2ebfe87d Core/Auras: implemented SPELL_AURA_MOD_HEALING_DONE_PCT_VERSUS_TARGET_HEALTH (#26176) 2021-02-27 20:55:59 +01:00
Shauren
ec9f5be6a6 Core/Phasing: Implemented setting personal guid on PhaseShift 2021-02-27 01:44:44 +01:00
Shauren
c9344c145a Core/Auras: Implemented SPELL_AURA_PHASE_ALWAYS_VISIBLE 2021-02-26 22:10:34 +01:00
jackpoz
a01d397c3d Core/Misc: Fix static analysis issues
Fix static analysis issues reported by 3rd party tools

(cherry picked from commit 24e82fe83d)
2021-02-25 18:50:55 +01:00
Ovah
2a51edc5bc Core/Creatures: Implemented extra flag to use offhand attacks (#21008)
* Fixed initial offhand attack timer so the main and offhand attacks will now act blizzlike instead of getting executed at the same time

Note: since some creature equipment items cannot be identified as weapon since they are only visual items there is no way to detect this automaticly
(cherry picked from commit 869affa893)
2021-02-25 18:50:55 +01:00
Treeston
03ab9bc6fa woops (ref 76a4c7d)
(cherry picked from commit b4df977ca6)
2021-02-25 18:50:55 +01:00
Treeston
2c0b94a000 Some misc streamlining/cleanup:
- std::chrono overloads for SummonCreature
- Removed misleading const qualifier from SummonCreature (it wasn't being honored)
- Rename parameters of SummonCreature to follow convention
- EventProcessor has a new method (AddEventAtOffset) that adds an event...at an offset. Genius.

PS: Hi there Keader.
(cherry picked from commit 76a4c7d974)
2021-02-25 18:50:55 +01:00
Matan Shukry
428fbcb133 Core/Players: Always clear old action bars on specialization change, even if new specialization doesn't have anything on its bars (#26134) 2021-02-23 20:08:21 +01:00
Matan Shukry
03f1d3cedf Core/Auras: Implemented SPELL_AURA_MOD_POWER_GAIN_PCT (#26132) 2021-02-23 17:36:36 +01:00
Matan Shukry
a76c08843f Core/Auras: implement mana cost modification aura (#26085) 2021-02-21 23:08:51 +01:00
Shauren
51a9d2a9c2 Core/Auras: Implemented new spell modifier type to change aura stack size on apply 2021-02-21 18:36:18 +01:00
Shauren
834d78638a Core/Players: Rename player flag PLAYER_ALLOW_ONLY_ABILITY to PLAYER_FLAGS_HIDE_ACCOUNT_ACHIEVEMENTS 2021-02-21 16:11:35 +01:00
Shauren
ac1ef5efbe Core/Auras: Implemented SPELL_AURA_DISABLE_ATTACKING_EXCEPT_ABILITIES 2021-02-21 16:10:48 +01:00
Shauren
1b8ef46808 Core/Auras: Reimplement SPELL_AURA_DISABLE_CASTING_EXCEPT_ABILITIES to properly allow casting listed spells 2021-02-21 16:10:22 +01:00
Shauren
b811da080c Core/Auras: Implemented SPELL_AURA_MOD_COMBAT_RATING_FROM_COMBAT_RATING 2021-02-21 16:07:01 +01:00
Shauren
84cb6718ee Core/Auras: Implemented SPELL_AURA_MOD_CRIT_CHANCE_VERSUS_TARGET_HEALTH and SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER 2021-02-21 15:43:58 +01:00
Shauren
983e565650 Core/Auras: Restore old SPELL_AURA_MOD_HOT_PCT implementation from 3.3.5 branch 2021-02-21 15:39:14 +01:00
Shauren
c57b012ee4 Core/Auras: Implemented SPELL_AURA_SET_FFA_PVP 2021-02-21 15:37:11 +01:00
Shauren
ffbbc1d8e5 Core/Auras: Implemented SPELL_AURA_MOD_AUTOATTACK_RANGE and SPELL_AURA_MOD_AUTOATTACK_CRIT_CHANCE 2021-02-21 15:35:33 +01:00
Shauren
5ed75bb2d3 Core/Auras: Implemented SPELL_AURA_PERIODIC_WEAPON_PERCENT_DAMAGE 2021-02-21 15:32:52 +01:00
Shauren
fea8306aa3 Core/Auras: Implemented SPELL_AURA_REMOVE_TRANSMOG_COST and SPELL_AURA_REMOVE_BARBER_SHOP_COST 2021-02-21 15:24:22 +01:00
Shauren
4ee565b2c8 Core/Auras: Implemented SPELL_AURA_MOD_PERIODIC_DAMAGE_TAKEN 2021-02-21 15:20:18 +01:00
Shauren
bd7c714c97 Core/Auras: Rename many old aura types to their new meaning 2021-02-21 15:16:55 +01:00
Shauren
04bf6b500d Fix build 2021-02-20 14:30:44 +01:00
Shauren
31d3080091 Core/Players: Corrected shield block value calculations 2021-02-20 14:00:48 +01:00
Shauren
456b5be8e4 Core/PacketIO: Fix sending unit power values 2021-02-17 14:37:47 +01:00
Shauren
166497988b Core/PacketIO: Add missing update field filtering for player fields 2021-02-17 14:37:18 +01:00
Shauren
e2b7a9d3e5 Core/PacketIO: Corrected logic for filtering out disallowed fields when force sending specific ones 2021-02-17 14:36:47 +01:00
Shauren
92e010f60c Core/PacketIO: Refactor generated updatefield code (use type alias) 2021-02-17 14:35:51 +01:00
Matan Shukry
d2641c4924 Core/Conditions: CONDITION_NEAR_CREATURE will exclude personal spawns that aren't the target's owner (#26102) 2021-02-17 00:42:53 +01:00
ccrs
58de8141e5 Core/Creature: 2d1ef6b5b0 followup
closes #20532

(cherry picked from commit caefe2b43e)
2021-02-15 19:13:25 +01:00
ccrs
92026abee1 Scripts/World: update guard scripts
Also remove deprecated method from Creature

(cherry picked from commit 299323ce5d)
2021-02-15 19:13:25 +01:00
Shauren
ece3c91d6e fix build 2021-02-15 00:30:24 +01:00
Shauren
331b9ccd6a Core/Entities: Regenerated updatefields code with latest generator fixes 2021-02-15 00:19:35 +01:00
Matan Shukry
c261b16a32 Core/Spells: Add const to triggeredByAura argument on Unit::CastSpell(GameObject* go,... overload for consistency 2021-02-13 14:08:16 +01:00
Shauren
49992508a4 Core/Movement: Refresh collision height on shapeshifting 2021-02-11 22:59:28 +01:00
Shauren
409ca262b3 Core/Movement: Updated MovementFlags2 for 9.0.2 2021-02-11 22:03:30 +01:00
Matan Shukry
b4bdc4eea6 Core/Players: - Fixed auto learning class abilities that are rewarded from quests if starting Exile's Reach in case player chose not to start there (#26036) 2021-02-09 23:06:45 +01:00
Shauren
9e9fb667ec Core/Creatures: Fixed crediting loot and quests for creatures using level scaling
Closes #26058
2021-02-09 17:40:47 +01:00
Robingad
964340bb76 Core/Auras: Handle SPELL_AURA_MOD_AUTOATTACK_DAMAGE
(cherry picked from AshamaneProject/AshamaneCore@92bbcfde0b)
2021-02-07 19:43:13 +01:00
Traesh
e11067a398 Core/Auras: Handle SPELL_AURA_MOD_SCHOOL_MASK_DAMAGE_FROM_CASTER
(cherry picked from commit AshamaneProject/AshamaneCore@458d0f2a53)
2021-02-07 19:43:13 +01:00
Shauren
cb47605235 Core/Players: Implemented secondary stat diminishing 2021-02-07 19:19:06 +01:00
r00ty-tc
f3ac10f36f Core/Spawn: Limit saved/stored respawn time.
- Limit to time_t maximum, for the compiled-for architecture.

Closes #20834

(cherry picked from commit 3446424540)
2021-02-06 21:41:51 +01:00
Shauren
65df9d424d Core/Trainers: Remove all "hidden" rank based requirements for learning spell from trainers and always only rely on trainer_spell.ReqAbility fields in database 2021-02-06 18:30:07 +01:00
Shauren
d697882dfb Core/Auras: Renamed a bunch of unknown or changed spell aura types and implemented some of them 2021-02-03 19:25:30 +01:00
Shauren
23144d0665 Core/AreaTriggers: Optimize target searching
* Don't visit grid objects for serverside areatriggers (search world container only for player)
* Move existing target list to "exitUnits" instead of copying it
2021-01-30 18:10:21 +01:00
Shauren
7851cd3a96 Core/AreaTriggers: Code cleanup 2021-01-30 18:10:21 +01:00
Matan Shukry
0417c5ff5f Core/AreaTriggers: Implementation for sever side area triggers
- Spawn GridLoader to spawn area triggers correctly now
- Removed SAI completely
- Removed remnants of smart scripts. Created different issue for it
- Calling InitDbPhaseShift and not InDbPhaseShift
- changed SpawnId to uint64 rather than uint32
- not using CellGuidSet typedef as to not include ObjectMgr.h in the header
2021-01-30 18:10:21 +01:00
ccrs
bf12bae467 Core/Misc: waypoint movement
- Creature: update current waypoint to store nodeId and pathId
- MotionMaster: change variable type on GetMotionSlotType and GetMotionSlot to keep consistency and prevent errors (ASSERT is now no longer needed)
- UnitAI: add new waypoint hooks WaypointPathStarted and WaypointPathEnded
- SAI: handle WAYPOINT related events if creature is no escorting
* SMART_EVENT_WAYPOINT_RESUMED still not implemented for no escorting

TODO: the new hooks can save, now duplicated, logic on EscortAI and SAI

closes #20777
updates #20310
updates 21bd52cb99

(cherry picked from commit e10d7dd45c)
2021-01-29 19:23:53 +01:00
Nathan Handley
502f77fe8c Core/Misc: Add functionality to allow low level quests/kills/discoveries to grant experience
(cherry picked from commit 6612ec47f4)
2021-01-29 19:23:53 +01:00