Commit Graph

932 Commits

Author SHA1 Message Date
Shauren d20dedebd6 Core/DataStores: Updated db2 structures to 7.2.0 2017-04-06 23:39:34 +02:00
Shauren f097e341f5 Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list
* Also fix gcc build
2017-03-23 00:11:58 +01:00
DoctorKraft 76dd3ae368 Core/Spells: Fixed EffectActivateSpec for hunter pets
Closes #19325
2017-03-21 17:36:44 +01:00
ariel- a3832be8d6 Core/Spells: Implemented SPELL_ATTR6_NOT_RESET_SWING_IF_INSTANT.
Closes #1765

(cherry picked from commit 03e21d2fad)
2017-03-04 20:03:54 +01:00
ariel- bf3570dadb Core/Spell: do not cast interrupt effect if the spell did not hit
(cherry picked from commit 08e0390d95)
2017-02-26 19:20:36 +01:00
ariel- 255dd29562 Core/Spell: no need to bloat existing parameter lists. (f81754a306 follow up)
(cherry picked from commit 4829cca9fb)

Note to self: drycoding is bad
(cherry picked from commit 7e8a08c351)

Another build fix.

(it was probably better to just revert the commit instead)
(cherry picked from commit be8d113699)
2017-02-18 18:07:07 +01:00
ariel- 7a971d7ed2 Core/Spells: register SPELLMOD_CRITICAL_CHANCE in casting spell modifiers.
(cherry picked from commit f81754a306)
2017-02-18 17:57:55 +01:00
ariel- 13562184e3 Core/Spells: Remove spellmods from SpellMod owner instead of caster (needed so pet casts properly remove aura charges)
(cherry picked from commit 3aa145cbe1)
2017-02-18 17:57:38 +01:00
ariel- c71a04d0f0 Core/Spells: fix Bullheaded immunities
Closes #421

(cherry picked from commit 11f6801a5c)
2017-02-18 17:57:08 +01:00
mik1893 0536c9d969 Core/Spells: Fixed spells like Shadowform, Tricks of the Trade, Misdirection getting stuck in unusable state clientside if they failed earlier because of GCD
Closes #657
Closes #12913
Closes #17376

(cherry picked from commit 6d07fbf07c)

Typo fix

(cherry picked from commit 39311e0ce8)
2017-02-12 17:04:08 +01:00
Treeston 8b7934f718 Core/Spells: Fix orientation- and targeting-related issues if the creature isn't currently engaged in combat. (#17120)
Also disable spell focus system for vehicle control auras.

Closes #16572
Closes #17016
(cherry picked from commit 6f85422f0b)
2017-02-12 17:04:08 +01:00
Treeston 346e4824be Entities/Unit: Cleanup refactor. Changes: (#17819)
+ Unit::m_movedPlayer -> Unit::m_playerMovingMe
+ Player::m_mover -> Player::m_unitMovedByMe
+ Unit::GetMover() -> Unit::GetUnitBeingMoved()
+ Unit::GetPlayerMover() -> Unit::GetPlayerBeingMoved()
+ NEW: Unit::GetClientControllingPlayer()
(cherry picked from commit 8deda7ed7f)

# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Handlers/MiscHandler.cpp
#	src/server/game/Handlers/MovementHandler.cpp
#	src/server/game/Handlers/SpellHandler.cpp
#	src/server/game/Server/WorldSession.cpp
#	src/server/game/Spells/SpellEffects.cpp
#	src/server/game/Spells/SpellInfo.cpp
2017-02-12 16:24:25 +01:00
Chaouki Dhib 66d36839f0 Core/Units: Fixed melee range check (#17693)
* Split Spell::CheckRange() into 2 methods since that method had more than one responsibility.
* Moved melee range logic into its own function
* Moved melee range logic method GetMeleeRange from Spell to Unit class. Unit::IsWithinMeleeRange() and Spell::GetMinMaxRange() both use that method.
(cherry picked from commit d7600f1126)

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Entities/Unit/Unit.h
#	src/server/game/Spells/Spell.cpp
2017-02-12 15:32:29 +01:00
treeston a0d886020d Core/Spells: Check TRIGGERED_DONT_REPORT_CAST_ERROR flag in SendCastResult rather than CheckCast.
Fixes and closes #16836.

(cherry picked from commit 4b15369378)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
2017-02-11 21:37:42 +01:00
treeston e30cbb960e Core/Spell: Quick readability change. Functionality not altered.
(cherry picked from commit 03bef35500)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
2017-02-11 16:59:44 +01:00
joschiwald e774c29c21 Fixed build 2017-02-05 00:16:58 +01:00
Aokromes 6d9a0ade7b Core/Mmaps: Charge ignoring z position of target (#17516)
* Core/Mmaps: Charge ignoring z position of target

By cemak closes #15011
(cherry picked from commit fda9f1a136)

Typo fix
(cherry picked from commit fcffdc38a7)

And another typo fix
(cherry picked from commit e0cc650ea9)
2017-02-04 23:59:27 +01:00
SnapperRy 8ee0a14c27 Core/Spell: allow use of ground mounts while swimming (#17488)
(cherry picked from commit b20912c8f6)
2017-02-04 23:20:08 +01:00
mik1893 7f903afea2 Core/Spells: Implement SPELL_ATTR7_INTERRUPT_ONLY_NONPLAYER (#17160)
* Core/Spells: Implement SPELL_ATTR7_INTERRUPT_ONLY_NONPLAYER
Closes #14972
(cherry picked from commit fd88a67182)
2017-01-29 18:13:21 +01:00
joschiwald 0f432edc4b Fixed build
Closes #18816
2017-01-13 18:54:15 +01:00
Shauren bf00ae90b6 Core/Spells: Fixed all cases of spells that crash the client when pressing ESC after being cast
(cherry picked from commit f765e8eb73)
2017-01-13 01:01:09 +01:00
treeston & Keader 0897042998 AI/PlayerAI: Finally implement cast logic for controlled players.
(cherry picked from commit 25c5570f47)
2017-01-11 22:41:30 +01:00
Shauren 6393e80129 Core/Spells: Implemented SPELL_ATTR1_DISMISS_PET
Closes #7372

(cherry picked from commit 9246189b98)
2017-01-09 02:10:08 +01:00
ForesterDev 5c2705fadc Core: updated creature type flags enum (#17128)
Core/Misc: Update CreatureTypeFlags enum according to TrinityCoreWiki
(cherry picked from commit fb0881398a)

# Conflicts:
#	src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp
#	src/server/game/AI/ScriptedAI/ScriptedFollowerAI.cpp
#	src/server/game/AI/SmartScripts/SmartAI.cpp
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Miscellaneous/SharedDefines.h
2017-01-09 02:00:17 +01:00
Alan Deutscher 1c60553df0 Core/Spells Make certain spells (e.g. Mind Control) properly flag the caster for PvP (#17145)
* This issue was caused by PvP-flagging being done calculated after the target's flag was turned off by becoming a pet.

(cherry picked from commit e7a12edb83)
2017-01-08 19:41:37 +01:00
Nawuko 955bfae5ef Core/Movement: Fix issues where creatures cancel spell casts chasing target and Implement SPELL_ATTR5_CAN_CHANNEL_WHEN_MOVING
(cherry picked from commit bf2cee8cce)
2017-01-08 18:06:43 +01:00
Elimination 48b74f0f6a Core/Spells: Fix wrong totem placement
(cherry picked from commit 37b2f590b6)
2017-01-08 00:54:08 +01:00
joschiwald 01e44cb794 Core/Spells: Extended remaining 8bit EffectMasks to 32bit 2017-01-06 17:20:04 +01:00
vincent-michael 86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
ariel- 780d1019f2 Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts and hooks
(cherry picked from commit cbb5c073ce)
2016-11-14 05:35:41 -03:00
Krudor 0e52a0e6b1 [6.x] Core/Spells: Implement SPELL_AURA_INTERFERE_TARGETTING (#17566) 2016-10-15 16:32:18 +02:00
joschiwald 2b4006f801 Core/Spells: fixed SPELL_ATTR5_USABLE_WHILE_STUNNED
(cherry picked from commit 625ca6ec1c)
2016-10-03 19:42:44 +02:00
joschiwald 12a52595ed Core/Spells: use spellinfo helper methods 2016-10-01 17:51:05 +02:00
Shauren ef29f32965 Core/Items: Defined all item flags 2016-09-09 10:22:57 +02:00
Shauren a727a99e34 Core/Players: Implemented new glyph system 2016-08-25 19:12:00 +02:00
Shauren 5f87c3f1b3 Core/Items: Rename ITEM_SPELLTRIGGER_ON_NO_DELAY_USE to ITEM_SPELLTRIGGER_ON_OBTAIN - this matches how it is implemented 2016-08-22 18:15:33 +02:00
Shauren 10e0f4ff8f Core/Spells: Fixed extended spell range while moving
Closes #17818
2016-08-20 00:28:55 +02:00
Shauren fea0cb16f2 Core/Items: Implemented artifacts 2016-08-15 00:03:38 +02:00
Shauren 51657e44d1 Core/Spells: Renamed some old and new spell effects 2016-08-09 17:21:19 +02:00
Ivan Beňovic 8ff5b35be1 Core/Spells: Add SpellMissInfo argument to BeforeHit hooks and call them also when the spell doesn't hit. (#17613) 2016-07-20 09:08:58 +02:00
Shauren a9a13d10f7 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-17 17:37:06 +02:00
Kito 86275a397a Game/Entities: Players can attack targets when they are not facing them as long as they are in boundaryradius, this also applies for cone effect spells
Signed-off-by: Shauren <shauren.trinity@gmail.com>
2016-07-16 16:57:43 +02:00
Shauren 0d9136f764 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-10 00:37:33 +02:00
Shauren a78aa3cf4e Core/PacketIO: Refactored building SMSG_UPDATE_OBJECT to append directly to final buffer and removed UpdateMask class 2016-07-10 00:11:19 +02:00
Shauren ef344664e3 Core: Update to 7.0.3.22150 2016-07-07 22:56:07 +02:00
Shauren 70137b8f3a Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-06 00:05:13 +02:00
Shauren f7883bd525 Core/Transmog: Implemented transmog collection and updated transmog handling 2016-07-05 22:07:35 +02:00
Shauren b63346a25e Core/Spells: Fixed spell dest range check failing on 0 distance max range requirement even if standing directly on top of destination
(cherry picked from commit ba63361d7c)
2016-07-05 17:02:34 +02:00
Shauren c0df972768 Core/Spells: Fixed crash with DEST targets added in b3d814ee50 2016-07-05 00:02:04 +02:00
Shauren ef396877ae Core/Spells: Fixed spell range check
Closes #17060

(cherry picked from commit e6a52d4aae)
2016-07-01 20:39:38 +02:00