Commit Graph

1731 Commits

Author SHA1 Message Date
Ariel Silva
7f8a4ad3a7 Core/Spells: fix console spam (#17084)
(cherry picked from commit 8d09065525)
2017-01-07 21:53:07 +01:00
treeston
489027703e Entities/Unit: Finally fix no-path evasion.
- When a creature cannot find a path to its victim, it begins evading all attacks and regenerating health.
- If this persists for 5 seconds, it evades back to spawn position with new EvadeReason value EVADE_REASON_NO_PATH.
- Also some SmartAI cleanup (why oh why does it have so much duplicated code) and getting rid of #defines in favor of type-checked compile-time constants.

(cherry picked from commit 7b1560fccb)
2017-01-07 21:33:28 +01:00
treeston
f93730b160 CreatureAI: Adjust AI behavior when a charm ends. OnCharmed will be invoked on the creature's base (non-charmed) AI, allowing the AI to react to the creature no longer being charmed.
(cherry picked from commit 26b084a90f)

align fix
(cherry picked from commit 58486fc19a)
2017-01-07 21:05:34 +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
DoctorKraft
a5473648dd Core/Units: Update druid shapeshift form models (#18554) 2016-12-24 15:31:45 +01:00
Onkelz28
17f94855f0 Core/Auras: Implemented aura 179 SPELL_AURA_MOD_POWER_DISPLAY (and renamed aura 402 to OVERRIDE) 2016-12-17 13:07:56 +01:00
Shauren
12ac800eff Core/Units: Implemented setting displayed power type depending on player spec
Closes #18496
2016-12-16 23:46:07 +01:00
Shauren
ac1dc758b9 Core/Units: Cleanup hardcoded magic numbers for byte field offsets 2016-12-13 20:58:22 +01:00
Palabola
0b6422b12b Core/Units: Fixed disconnects when some unit has 0 speed (#18317) 2016-11-30 21:19:54 +01:00
Shauren
5411ca8cdf Core/Units: Removed attack speed float to int conversion special case in building SMSG_UPDATE_OBJECT 2016-11-25 17:58:48 +01:00
Shauren
ee21cd31a1 Core/Auras: Fixed SPELL_AURA_MOD_DAMAGE_PERCENT_DONE for creatures (and crashfix) 2016-11-20 11:52:04 +01:00
Shauren
b9f7b500a3 Core/Auras: Rewritten conditionally applying SPELL_AURA_MOD_WEAPON_CRIT_PERCENT, SPELL_AURA_MOD_DAMAGE_DONE and SPELL_AURA_MOD_DAMAGE_PERCENT_DONE auras
* Now the entire aura is removed when changing equipment
* All aura types can now depend on equipped items
2016-11-20 00:44:49 +01:00
Shauren
f94e6cee38 Core/Auras: Fixed removing auras triggered by aurastates
Closes #17868
2016-11-13 00:41:56 +01:00
Shauren
39df5e9ead Core/Stats: Updated handling crit chance - removed school specific crit chances 2016-11-06 00:14:50 +01:00
Shauren
537ff17ca0 Core/PacketIO: Fixed unneccessary packet spam when units become visible for players
Before this change, one player starting to see any unit (CreateObject) would trigger sending root, feather fall, water walk, hover, can turn while falling and double jump status changes to ALL nearby players
2016-10-21 18:24:47 +02:00
Manuel Carrasco
7fa191f774 Core/AI: initial support for monster sparring (#17673)
(cherry picked from commit 303066509d)
2016-10-20 18:42:13 +02:00
Shauren
adad691807 Core/Auras: Implemented SPELL_AURA_CAN_TURN_WHILE_FALLING 2016-10-16 14:28:42 +02:00
Shocker
b4c4781723 Core/Spells: Implement SPELL_AURA_MOD_MINIMUM_SPEED_RATE (aura 437) 2016-10-12 17:50:47 +03:00
Shauren
a52c50e809 Core/Auras: Add root aura handler to aura type 455
Closes #18030
2016-10-05 23:15:58 +02:00
Shauren
cd326db30f Core/Units: Clear UNIT_NPC_EMOTESTATE on death (blizzlike)
Closes #15263
Closes #18027
2016-10-04 17:51:37 +02:00
joschiwald
12a52595ed Core/Spells: use spellinfo helper methods 2016-10-01 17:51:05 +02:00
Shauren
bba7b6a554 Core/Player: Set max power values from PowerType.db2 2016-09-20 23:09:10 +02:00
Shauren
fb1f98ad09 Core/Movement: Implemented double jump 2016-09-11 16:29:19 +02:00
Naios
cc51ae6f9a Core/Unit: Force cancel unit events before invalidating the object on destruction
* Closes #16675

(cherry picked from commit 0c97ef5f74)
2016-08-29 22:07:14 +02:00
Shauren
4a13ec2fcb Core/Spells: Defined known shapeshift flags 2016-08-23 16:00:44 +02:00
Regigicas
796e851a8f Core/Spell: Restore SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN behavior (#17704) 2016-08-22 21:16:26 +02:00
Shauren
d9aca10221 Core/Players: Fixed autoattack damage in shapeshift forms that don't have offhand attacks but can dual wield (ghost wolf and druids with feral/bear artifacts) 2016-08-17 18:52:58 +02:00
Shauren
4a6cf1b61d Core/Stats: Fixed feral melee damage calculation 2016-08-16 00:09:24 +02:00
Shauren
fea0cb16f2 Core/Items: Implemented artifacts 2016-08-15 00:03:38 +02:00
Shauren
83555367a7 Core/Auras: Visibility changes
* Changed max visible aura amount to 255
* All auras are now sent to clients, many passives that client needed to see were incorrectly hidden (also client properly filters aura bar by itself)
2016-07-26 20:55:24 +02:00
Ovalord
79aafd5865 Core/Players: Initial work on demon hunters
* Added starting level and required level config options as well as rbac permission to ignore the requirements
* Updated max power values for both demon hunter specs
* Fixed a crash during DK and DH creation
* Added playercreateinfo data for demon hunters

Closes #17651
2016-07-23 18:39:56 +02:00
Shauren
bccdd93f50 Build fixes 2016-07-19 20:23:49 +02:00
Shauren
836221aaf5 Merge branch 'legion' into 6.x 2016-07-19 19:31:54 +02:00
Shauren
cc07a491f6 Core/Spells: Fixed possible null pointer dereference
Coverity CID 1357406
2016-07-18 20:26:05 +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
6321206938 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-13 17:08:40 +02:00
Krudor
cf60c492ec Core/AI: Add better support for tracking DynObjs (#17562) 2016-07-12 18:04:19 +02:00
Shauren
9b14e8248c Core/PacketIO: SMSG_UPDATE_OBJECT optimization - removed unneccessary memory allocation by dynamic_bitset 2016-07-11 17:14:42 +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
b63e0769a5 Core/Units: Fixed autoattack range
Closes #17539

(cherry picked from commit 14b93c04ee)
2016-07-09 20:47:45 +02:00
Shauren
c2f6c4d2bd Core/Auras: Renamed spell aura 333 to better describe its purpose 2016-07-08 23:19:38 +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
ef396877ae Core/Spells: Fixed spell range check
Closes #17060

(cherry picked from commit e6a52d4aae)
2016-07-01 20:39:38 +02:00
Shauren
1b1478ba86 Core/Auras: Implemented spell aura 402 - SPELL_AURA_MOD_POWER_DISPLAY
Closes #17468
2016-06-30 17:20:13 +02:00
Shauren
7ed1c47f6b Core/Auras: Implemented SPELL_AURA_OVERRIDE_SPELL_VISUAL 2016-06-29 19:49:23 +02:00
Shauren
1c10f9c311 Core/PacketIO: Fixed building SMSG_UPDATE_OBJECT 2016-06-28 18:34:50 +02:00
P-Kito
11ed9b0b63 Game/Unit: Update shapeshift forms enum to match SpellShapeshiftForm.dbc (#17407) 2016-06-17 21:26:51 +02:00