Commit Graph
1122 Commits
Author SHA1 Message Date
Ovahlord 47170c11c6 Core/Spells: fixed a typo in 3a2e3452e0 2021-11-17 18:44:40 +01:00
Ovahlord 3a2e3452e0 Core/Spells: implement TARGET_UNIT_CASTER_PASSENGERS (105)
closes #297
2021-11-17 17:47:18 +01:00
Ovahlord edbbeba5a2 Core/Movement: ported client control logic updates from 335 branch 2021-11-06 23:41:34 +01:00
Ovahlord b10f962ba3 Core/Creatures: several cleanups and improvements to spell focusing to reduce edge case issues 2021-10-21 13:18:24 +02:00
Ovahlord 949f92e0a1 Core/AI: ported charm updates from 335 2021-09-16 16:48:07 +02:00
Ovahlord 0dfa919f09 Core/Creatures: optimized sparring checks by handling them via variable instead of map lookups and expose its value to helpers to allow manipulation during runtime 2021-07-26 15:48:16 +02:00
Ovahlord 8011d2de29 Core/Spells: ported resistance and immunity updates from 3.3.5 branch 2021-06-12 14:10:44 +02:00
Ovahlord 2dce3955b2 Core/Spells: defined and implement SPELL_ATTR1_DISCOUNT_POWER_ON_MISS 2021-05-16 19:04:54 +02:00
Ovahlord 4436b46908 fixed build 2021-05-15 20:33:17 +02:00
Ovahlord 16675c0f2f Core/Packets: converted CMSG_CAST_SPELL to packet class 2021-05-15 20:11:33 +02:00
Ovahlord 2bedccd8b0 Core/Spells: added more case-by-case checks to determine auto action resets 2021-05-01 10:02:58 +02:00
Ovahlord fe909f8234 Core/Spells: tempoarily add an additional check to avoid many spells falsely resetting melee swing timers 2021-04-30 10:30:37 +02:00
Ovahlord bf28dfcf0c Core/Spells: corrected a check when retrieving mechanic immunities in cast and channel packets and fixed a typo in SMSG_CHANNEL_START that was overwriting school immunities with mechanic immunities instead 2021-04-27 15:42:50 +02:00
Ovahlord eda56e744c Core/Spells: corrected check of b29d84af98 2021-04-21 20:00:23 +02:00
Ovahlord b29d84af98 Core/Spells: defined and implemented SPELL_ATTR2_INITIATE_COMBAT_POST_CAST 2021-04-21 19:07:15 +02:00
Ovahlord 9ff4bbd085 Core/Spells: ported implementations of SPELL_AURA_DISABLE_CASTING_EXCEPT_ABILITIES and SPELL_AURA_DISABLE_ATTACKING_EXCEPT_ABILITIES from master branch
closes #93
2021-04-21 18:51:34 +02:00
Ovahlord 0ae10d09a2 Core/Packets:
* converted SMSG_SPELL_FAILURE, SMSG_SPELL_FAILED_OTHER and SMSG_SPELL_DELAYED to packet class
* converted SMSG_RESURRECT_REQUEST to packet class and handle SPELL_ATTR3_IGNORE_RESURRECTION_TIMER
2021-04-16 17:53:18 +02:00
Ovahlord 96fe5e76a9 Core/Spells: fixed a typo when checking for SPELL_ATTR3_CANT_TRIGGER_TARGET_PROCS in prepareDataForTriggerSystem 2021-04-09 14:14:04 +02:00
Ovahlord 77158594ff Core/Spells:
* renamed SPELL_ATTR3_CANT_TRIGGER_PROC to SPELL_ATTR3_CANT_TRIGGER_CASTER_PROCS and expanded its implementation
* renamed SPELL_ATTR3_NO_INITIAL_AGGRO to SPELL_ATTR3_CANT_TRIGGER_TARGET_PROCS and implement the attribute
* expanded implementation SPELL_ATTR2_NO_INITIAL_THREAT to cover all remaining spots
2021-03-30 17:50:27 +02:00
Ovahlord e93a66d287 Core/Spells: defined and implemented SPELL_ATTR5_DONT_TARGET_PLAYERS 2021-03-30 10:26:15 +02:00
Ovahlord 1706b9688f Core/Spells: defined and implement SPELL_ATTR2_NO_INITIAL_THREAT 2021-03-30 00:01:02 +02:00
Ovahlord 83378eb5c3 Core/Spells: defined and implemented SPELL_ATTR2_DONT_REPORT_SPELL_FAILURE 2021-03-29 23:53:00 +02:00
Ovahlord 83298b52a2 Core/Spells: ported SpellInterruptFlags updates from master branch and corrected some own implementations based on these new results 2021-03-25 15:53:26 +01:00
Shauren b2ab210da9 Core/Spells: Defined more spell attributes 2021-03-25 13:47:54 +01:00
Ovahlord dfdf540dd0 Core/Spells: define and handle SPELL_ATTR8_HEAL_PREDICTION 2021-03-24 20:21:44 +01:00
Shauren fed82c1002 Core/Auras: Defined and implemented many new interrupt flags 2021-03-24 14:53:30 +01:00
Ovahlord d097a409a5 Core/Spells: fixed Horn of Winter not granting any Runic Power 2021-03-20 23:44:54 +01:00
Ovahlord 4503ed0a70 Core/Spells: Death Knight abilities that have their rune power removed by spell mods will no longer generate any Runic Power 2021-03-13 18:48:45 +01:00
Ovahlord ffc05d0bf1 Core/Spells: implement helper to filter mechanic immunities in packets to reflect sniff behavior and removed pct heal effects from heal prediction
Despite being able to send all mechanic immunities in spell_start and channel_start, sniffs confirm that only relevant immunities are being sent which in most cases are silence and interrupt immunities. Further sniff analysis may reveal even more possible interrupt flags
2021-02-26 11:30:44 +01:00
Warpten 2fb9e0da8c Core/Spells: Add missing member initialization. (#238) 2021-02-23 22:01:35 +01:00
Ovahlord 43d76be2fd fixed a warning 2021-02-20 23:30:46 +01:00
Ovahlord 0299fa4fe1 Core/Misc: replace boost::optional with std::optional 2021-02-19 14:07:43 +01:00
Shauren ef25a19326 Core/Units: Allow mind controlling non-controllable vehicles (for example players that become vehicle during boss encounters or creatures that only are vehicles to show non standard power type)
Closes #24562
2021-02-19 13:15:08 +01:00
Ovahlord 3a97aad549 Core/Spells: corrected mechanic of target type 126 and renamed it to TARGET_UNIT_AREA_ENEMY 2020-11-25 15:15:03 +01:00
Ovahlord 754c138f89 Core/Spells: ported CastSpell unclusterfucking from 3.3.5 branch 2020-11-04 22:37:11 +01:00
Ovahlord a6a1c619f5 Core/Spells: reverted 6c34d8b5ce since the new place for the hook call does conflict with other hook calls which are already handled 2020-10-02 19:31:55 +02:00
Ovahlord 6c34d8b5ce Core/Spells: relocated SPELL_FINISHED_CHANNELING_COMPLETE handling to a better place 2020-10-02 19:04:33 +02:00
Ovahlord d753df4ae9 Core/Spells: improved spell finish reason enum naming for finished channeled spells 2020-10-01 20:24:03 +02:00
Ovahlord 0a480f3ae8 Core/Units: update internal facing of units on every update tick when a target guid or a tracking channeled spell is being used 2020-09-23 20:48:43 +02:00
Ovahlord 02d700f3c2 Core/Spells: fixed a potential crash when trying to turn towards a non-existing target on spell cast 2020-09-15 14:51:37 +02:00
Ovahlord d606fa4688 Core/Spells: update serverside orientation of SPELL_ATTR1_CHANNEL_TRACK_TARGET on periodic aura update ticks instead of every spell update tick 2020-09-13 22:43:11 +02:00
ariel- dcd017bbad Core/Spell: fix LoS checks for GameObject spells
Closes #21580
2020-09-11 15:11:24 +02:00
Wyrserth d2b27bc43c Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura (#23319)
* Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura.

* Forgot to change this in last-second rename.

* Apply suggested changes, thanks Shauren!

# Conflicts:
#	src/server/game/Entities/GameObject/GameObject.cpp
#	src/server/game/Entities/Unit/UnitDefines.h
#	src/server/game/Entities/Unit/enuminfo_UnitDefines.cpp
#	src/server/scripts/Outland/CoilfangReservoir/TheSlavePens/boss_ahune.cpp
2020-09-11 15:06:15 +02:00
Ovahlord 3274117cec Core/Spells: cleaned up and improved spell focusing behavior
* removed hacky update_object call from SetSpellFocus helper
* corrected facing behaivior in SetSpellFocus
* spells with SPELL_ATTR5_DONT_TURN_DURING_CAST will no longer set a target guid for proper clientside facing behaivior
* channeled spells with a destination target will no longer pick a objectTarget
* update serverside orientation for channeled spells with SPELL_ATTR1_CHANNEL_TRACK_TARGET
2020-09-09 20:08:35 +02:00
Ovahlord aba4da0898 Core/Spells: revert ec997a4715 and apply stricter rules to avoid unwanted behaivior 2020-08-30 14:30:55 +02:00
Ovahlord ec997a4715 Core/Spells: revert SPELL_ATTR5_INCLUDE_MELEE_RANGE naming since all non-generic aoe spells are suposed to use hitbox sums instead 2020-08-30 14:17:01 +02:00
Giacomo Pozzoni 6a8ecc3ee3 Core/Misc: Fix issues reported by static analysis (#25351)
* Core/Misc: Fix issues reported by static analysis

* Core/Vmaps: Code cleanup after e777161888
# Conflicts:
#	src/common/Collision/DynamicTree.cpp
#	src/server/game/Entities/Object/Object.cpp
#	src/server/game/World/World.cpp
2020-08-29 13:49:21 +02:00
Ovahlord 85018f9421 Core/Spells: fixed name clash between local variables and class member corpseTarget 2020-08-29 13:15:43 +02:00
Warpten 2b2fc5fb8a Core/Spells: remove PrepareSpellScript and PrepareAuraScript macros and make Hooklist use emplace behaivior (#174) 2020-08-28 15:40:26 +02:00
Ovahlord 677990a1b8 Core/Spells: removed more unused parameters for 4.x since SPELL_AURA_MOD_CRIT_PERCENT_VERSUS is not used at all 2020-08-28 12:20:35 +02:00