Ovahlord
40882b3f71
Core/Spells: define and implement SPELL_ATTR5_INCLUDE_MELEE_RANGE
...
*this attribute is being used to determine whenever a area targeting based spell shall include its melee range for target selection or not. This fixes many cases in which especially class abilities should hit targets that do not directly stand inside of the radius of a spell while maintaining that behaivior for spells without that attribute
2020-07-16 22:39:41 +02:00
Ovahlord
d371c9d1f6
Core/Packets: converted MSG_MOVE_TELEPORT, MSG_MOVE_TELEPORT_ACK, CMSG_SET_ACTIVE_MOVER and SMSG_MOVE_UPDATE_TELEPORT to packet class and send SMSG_MOVE_UPDATE_TELEPORT for players after receiving MSG_MOVE_TELEPORT_ACK instead of sending it alongside MSG_MOVE_TELEPORT
2020-07-16 15:26:12 +02:00
Ovahlord
d82c00c915
Core/Units: changed _formationFollowers from unit references to object guids to have a safer access to its stored units
2020-07-14 23:47:23 +02:00
Ovahlord
f8091d6aac
Core/Movement: made SetDisableGravity and SetHover virtual and handle anim tiers in their new override inside of the Creature class.
...
* no longer set anim tiers when the target is rooted
2020-07-13 14:07:59 +02:00
Ovahlord
9e2e37e074
Core/Spells: check for spell immunities only for effects that are affecting the checked target
2020-07-10 19:12:37 +02:00
Ovahlord
4f7eec88dc
Core/Packets: converted SMSG_LOOT_LIST to packet class
2020-07-08 14:19:44 +02:00
Ovahlord
696ab70f7f
Core/Movement: moved the cleanup of the idle motion slot to CleanupBeforeRemoveFromMap
2020-06-29 12:15:17 +02:00
Ovahlord
6bb5405296
Core/Movement: removed unnecessary logging from f1b16b4820
2020-06-28 22:20:11 +02:00
Ovahlord
f1b16b4820
Core/Movement: added a safety and error output if a follow target has a dead / invalid follower reference that should have been cleared before.
2020-06-28 14:23:02 +02:00
Ovahlord
9bd1cb8970
Core/Movement: handle special follow movement case for companions
2020-06-27 16:04:37 +02:00
Ovah
b09d6e2330
Core/Movement: reimplement follow movement ( #124 )
2020-06-26 21:22:21 +02:00
jackpoz
3f56ea8ba4
Core/Misc: Fix Clang 10 build warnings
...
(cherry picked from commit 48c5c0d7a2424df73343df127d415ee18eb84296)
2020-06-11 20:49:30 +02:00
Warpten
0af44ccc01
Core/Spells: implement DoT clipping
...
* Core/Spells: Implementation of DoT clipping.
* Core/Utilities: Backport "EnumFlags v3.0" from master.
* Core/Spells: Switch AURA_REMOVE_MODE to a flag set.
2020-06-04 18:16:03 +02:00
Warpten
5cb747620a
Core/Movement: Fixed Animation Tier handling ( #113 )
2020-06-03 00:49:18 +02:00
Ovahlord
f1bd380b20
Core/Players: update mount capabilties when the liquid status of players change
...
* simplified checks for liquid restrictions in mount capability helper
* handle missing case for liquid exclusive mounts
* update position data on character login to avoid some edge case outdoors checks
closes #95
2020-06-01 15:10:13 +02:00
Ovahlord
813b82efa3
Core/Units: CanFly and CanHover will now return positive results when the creature has the according movement flags dispite not having the template movement field set as enabled. This fixes several edge cases with manually enabled flight movement
...
* renamed IsLevitating to IsGravityDisabled for consistency
2020-05-16 19:21:27 +02:00
Ovahlord
d8ec67df50
Core/Movement: converted collision height and move update opcodes back to movement structures and implement new movement status elements for future use
2020-05-10 19:21:33 +02:00
Ovahlord
a2cea3ce08
Core/Movement: converted CMSG_MOVE_SET_COLLISION_HEIGHT_ACK and SMSG_MOVE_UPDATE_COLLISION_HEIGHT to packet class
...
* added new MovementInfo helpers for easy access to all packet related data
2020-05-10 01:31:53 +02:00
Ovahlord
298c2593df
Core/Units: fixed a crash that happened when despawning a pet while having units with no ownerguid stored in m_controlled
...
* minor fixups for vehicle energy power regeneration
* do not set ownerguids for summon vehicles
2020-04-29 14:27:27 +02:00
Ovahlord
bedd554c79
Core/Units: protect m_Controlled unit set against removing non-existing pointers and log owner and unit to track down potential crashes
2020-04-28 20:42:24 +02:00
Shauren
48695b7c9d
Core/Auras: Prevent getting negative scale with auras
...
Closes #24040
# Conflicts:
# src/server/game/Entities/Creature/Creature.cpp
# src/server/game/Entities/Pet/Pet.cpp
2020-04-28 18:10:14 +02:00
Ovahlord
5cf7de6aa7
Core/Units: make health regeneration functions for players and creatures virtual
2020-04-27 14:39:07 +02:00
Ovahlord
e7ba484fcf
Core/Units: reworked creature power regeneration handling
...
* players and creatures now share the same power regeneration regeneration function
* UpdatePowerRegeneration is now virtual and handles creature and player specific formulas individually
* handle update field flag UF_FLAG_UNIT_ALL to handle UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER and UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER for creatures as well
2020-04-27 14:20:33 +02:00
Ovahlord
153546acba
Core/Units: do not send owner based update fields for units that only have a creator guild but no summoner guid
2020-04-26 16:56:38 +02:00
Ovahlord
b653f2f819
Core/Units: ported power type updates from master branch
2020-04-22 03:13:02 +02:00
Ovahlord
c00858d969
Core/Creatures: removed hacks from SetMinion helper
2020-04-22 00:21:50 +02:00
Ovahlord
d30c811d9e
Core/Creatures: reworked tempoary summon creation
...
* all stats and values will now be set before summons are getting added to map
* cleaned up summon spell effect handler to reduce duplicade code
* summoner guids will no longer be set for every minion and correctly handle assigning creator guids instead. These values will serve as fallback guid if there is no summoner guid
* friendly tempsummons will now inherit the guild data of their player and pass them on to further allied summons. This fixes guild specific visuals for creatures such as Guild Battle Standards and Guild Heralds.
Todo: check for regressions
2020-04-22 00:20:18 +02:00
Ovahlord
29aac17e2c
Core/Packets: removed unused field from attacker state update field
2020-04-20 22:03:23 +02:00
Ovahlord
4daf6d5f23
Core/Packets: converted SMSG_ATTACKER_STATE_UPDATE to packet class
2020-04-20 19:09:29 +02:00
Ovahlord
937df192f6
Core/Packets: converted threat packets to packet class and fixed threat amount sent in them
2020-04-20 10:45:49 +02:00
Ovahlord
206cd7d6d7
Core/Units: std::floor for rounding rage gains
2020-04-19 23:19:59 +02:00
Ovahlord
c537a2658a
Core/Units: reworked power regeneration for players
...
* use a reversed client function to get the power regeneration rate for all types of powers
* unified all player based regeneration updates into a single statsystem helper
* cleaned up unnecessary regeneration timers
* implement power regeneration for alternative powers
* corrected rage gain numbers based on simulationcraft formulas
2020-04-19 22:53:29 +02:00
Shauren
cb6ce1302b
Core/Misc: Defined new summon properties titles
2020-04-07 18:33:13 +02:00
Ovahlord
b5bdf61e5f
Core/Packets: converted SMSG_DURABILITY_DAMAGE_DEATH, SMSG_PLAY_ONE_SHOT_ANIM_KIT, SMSG_SET_AI_ANIM_KIT, SMSG_SET_MOVEMENT_ANIM_KIT and SMSG_SET_MELEE_ANIM_KIT to packet class
2020-04-07 16:29:30 +02:00
Ovahlord
d31f19265d
Core/Objects:
...
* store liquid status lookups from UpdatePositionData in a member and draw liquid status information from it instead of doing extra vmap lookups. This also fixes collision height based liquid status states which was leading to false positive movement speed selection for creatures
* remove redundant IsUnderWater helper override from player class as our object based liquid status also considers collision height
2020-04-05 20:41:15 +02:00
Ovahlord
c7f5732571
Core/Units: corrected a warning fix for gcc build
2020-04-05 00:10:53 +02:00
Ovahlord
77cf10ee5f
Core/Misc: fixed gcc warnings
2020-04-04 20:20:41 +02:00
Ovahlord
fe4ff01e30
Core/Movement: converted SMSG_MOVE_KNOCK_BACK to packet class
2020-03-29 19:12:32 +02:00
NoName
b2af17eb4a
Core/Spell: Proper SPELL_EFFECT_PULL_TOWARDS_DEST implementation for players
...
* Core/Spell: SPELL_EFFECT_PULL_TOWARDS correction
2020-03-29 16:23:47 +02:00
Ovahlord
c9961e6a94
Core/Movement: rewrite follow movement
2020-03-27 18:59:16 +01:00
Ovahlord
5e5ec5c70f
Core/Spells: SPELL_AURA_OVERRIDE_AUTOATTACK_WITH_MELEE_SPELL will now pull its spell ids for off-attacks from basepoints instead of misc values since there is only one case that uses it in Baleroc's encounter
2020-03-20 11:31:38 +01:00
Ovahlord
f1f00c3ec3
Core/Datastores: refactor DBC storage helpers to use a class and fixed no pch build
2020-03-18 15:24:25 +01:00
Ovahlord
478fbe9fc1
Core/Spells: implement SPELL_AURA_OVERRIDE_AUTOATTACK_WITH_MELEE_SPELL ( #23467 )
2020-03-16 20:25:57 +01:00
Ovahlord
091e337574
Core/Spells: SPELL_AURA_MOD_PACIFY will no longer block victim updates and return false in Attack method
2020-02-23 22:29:32 +01:00
Ovahlord
e47b9c8599
Core/Movement: converted SMSG_MOVE_SET_COLLISION_HEIGHT to packet class and handle reason bits to match sniff behaivior
2020-02-23 10:59:57 +01:00
Ovahlord
d9b854ad59
Core/Datastores: backported hotfix system implementation
2020-02-21 23:13:38 +01:00
Ovahlord
a5e56171af
Core/Units: added pointer check in SetMinion to protect the core against old/bad coding and improved codestyle in function
2020-02-17 00:18:32 +01:00
Ovahlord
a5adc77f04
Core/Auras: moved SPELL_AURA_MOD_MELEE_DAMAGE_FROM_CASTER handling to MeleeDamageBonusDone
2020-02-05 08:42:29 +01:00
Ovahlord
b95d367f8d
Core/Auras: define and implement SPELL_AURA_MOD_MELEE_DAMAGE_FROM_CASTER
2020-02-04 22:34:44 +01:00
jackpoz
183789053e
Core/Misc: Fix GCC 8 warnings
2020-01-31 21:19:25 +01:00