Commit Graph

1825 Commits

Author SHA1 Message Date
Aokromes
adae2fec26 Ensure that all actions are compared to fixed point in time (ie. world update start) 2017-04-14 15:02:49 +02:00
ariel-
c17fa0bcc5 Core/Instance: stop updating the instance resettimes based on creature respawns 2017-04-14 13:50:13 +02:00
Aokromes
92816c0f17 Core/Gameobject: destroy test 2017-04-03 12:20:06 +02:00
ccrs
5d79ac9275 Core/Unit: cleanup UnitState enum 2017-03-26 06:15:09 +02:00
S.V
cdff8ab387 Core/Creatures: Fixed GMs being considered in party/raid with nearby creatures without CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT
Ref #19340
2017-03-23 02:15:05 +01:00
ariel-
d1382c5f23 Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle
Closes #17234
2017-03-20 16:55:01 +01:00
ariel-
35e9c27c4a Core/Entities: don't finalize movesplines before deleting.
- The whole MotionMaster will be destroyed along with the unit, freeing the allocated memory.

Closes #19324
2017-03-20 16:53:54 +01:00
ariel-
f2c7c5cf0c Core/Unit: properly reset displayIds when having a shapeshift aura active
Closes #19309
2017-03-20 16:45:09 +01:00
ariel-
7871583016 Core/Auras: tidy up one little hack 2017-03-13 10:09:59 +01:00
Aokromes
41c30413c9 Core/Misc: Minimize branch differences 2017-03-13 09:52:07 +01:00
Gustavo
d21bb8f5ca Core/Unit: Correct speed calculus when affected by SPELL_AURA_MOD_MINIMUM_SPEED (#18136) 2017-03-03 01:26:03 +01:00
ariel-
6cd253ff8f Core/Misc: moved WeaponAttackType definition to SharedDefines to avoid including Unit.h 2017-03-03 01:19:28 +01:00
xinef1
2c05a59815 Core/Misc: Fix various crashes, also related to multithreading (#19012)
* When iterating groups we have to either do it not in multithreaded context (map updates) or start with checking maps (they are guaranteed to change in single thread update).
* Properly clear ComboPoint references on player remove 
* remove some possible references item may have when it is deleted during save. 
* Also clear all hostile references when unit is removed from map.
2017-02-05 01:58:11 +01:00
xinef1
01b43b3da0 Core/Pets: Fixed flashing pet attack button (#18906) 2017-02-05 01:57:37 +01:00
Flameshot
30732ecc5d Fixed one build error and performance warnings 2017-02-04 16:34:09 +02:00
Aokromes
30eced8380 Core/Spells: Properly send autorepeat cancel packet to self and fix s…
…ome problems with autoshot
2017-02-01 15:18:54 +01:00
Aokromes
f0db5c7e8b Core/Entities: Moved PITCH movement flags into TURNING mask
(they do not cause movement in any direction alone, only combined with forward/backward/strafe)
2017-01-30 02:56:12 +01:00
Aokromes
9f6fc5f123 Core/Pets: Disable pet interface for charmed units while mounted 2017-01-21 14:55:03 +01:00
xinef1
696ac52f83 Core/Auras: Prevent remove of auras interrupted by turning if the turn could be caused by float calculation error (#18595) 2017-01-21 14:50:15 +01:00
Aokromes
b7432bc39a Compile fix try 2017-01-18 15:09:57 +01:00
Aokromes
719a317a67 Update copyright note for 2017 2017-01-02 07:26:38 +01:00
xinef1
3d4a36a5bd Core/Units: Fixed bug in stun code making units summoned by npcs to never break out of stun (#18612) 2016-12-28 16:08:35 +01:00
xinef1
297fdc6e1a Core/Units: Fixed exploit where killing tamed pet could yield emblems (#18605) 2016-12-28 16:08:22 +01:00
Aokromes
949ce2d576 Core/Units: Cleanup hardcoded magic numbers for byte field offsets
(cherry picked from commit ac1dc75)
2016-12-16 19:54:22 +01:00
ariel-
fb632b61fe Core/Unit: feral druid attacks should not be normalized
Closes #18460
2016-12-16 19:25:11 +01:00
ariel-
1d3fddfc6a Core/Entities: don't absolute compare positions on UpdatePosition
Closes #18415
2016-12-16 19:24:12 +01:00
ariel-
eb3a90a4e8 Core/Spell: implemented dispel reflection
Closes #18323
2016-12-16 19:24:01 +01:00
ariel-
1066fe59c9 Core/Auras: calculate periodic bonuses before specific mods, fixes Imp. Devouring Plague damage 2016-12-06 11:10:30 +01:00
Chaouki Dhib
935a4cbeab Core/Movement: minor MotionMaster refactor (#18367) 2016-12-06 11:08:10 +01:00
Aokromes
0737ea9b6e Core/Spells: Fixed logic related to movement while channeling 2016-11-27 15:47:21 +01:00
Aokromes
296bd71c79 build fix 2016-11-27 05:34:51 +01:00
Aokromes
12068f4cc1 typo fix 2016-11-27 04:50:47 +01:00
Aokromes
be8cb29c93 Core/Unit: add impurity attack power bonus to healing too (for Death …
…Coil for example)
2016-11-27 03:21:03 +01:00
Aokromes
c0ba6c2dfe Core/Auras: Rewritten conditionally applying SPELL_AURA_MOD_WEAPON_CR…
…IT_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-27 03:09:29 +01:00
Aokromes
6c76eff031 Core/Unit: fix some SPELL_AURA_MOD_DAMAGE_PERCENT_DONE effects being …
…applied more than once

No more overpowered dps for you
2016-11-27 01:36:22 +01:00
ariel-
227dc4d907 Core/Unit: fix build
Ctrl-S failure
2016-11-27 01:24:19 +01:00
Aokromes
e4dd97765e Core/Spell: revamp of immunities system
- Spell attributes research
- Container optimization
- Do not skip damage immunity checks on SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY present
- Added additonal arguments support to SendCastResult / CheckCast, spells can now send proper error messages
- Loads spell immune masks/states/effects at startup.
- This cached info is used whenever a spell cast requires immunities to be known beforehand (to see if an aura could be applied for example)
2016-11-19 06:10:14 +01:00
ariel-
1fcb8e0b4e Core/Unit: consider creatures with same faction to be on the same party/raid for the purposes of spell/aura targets
Ref #18233
2016-11-15 05:46:05 +01:00
Shauren
5ddf50bdee Core/Auras: Fixed removing auras triggered by aurastates
Closes #17868

(cherry picked from commit f94e6cee38)
2016-11-15 05:43:30 +01:00
Aokromes
de6b2eeca1 Revert "Core/Unit: send original caster in heal packet log"
This reverts commit 7290ff87e7.
2016-11-02 04:44:36 +01:00
Aokromes
7290ff87e7 Core/Unit: send original caster in heal packet log 2016-11-02 03:16:18 +01:00
ariel-
4e61ff8c9c Core/Unit: consistency fix 2016-11-02 03:12:25 +01:00
ariel-
7a0647ec46 Core/Unit: fix warning reported by VS2015
C4146: unary minus operator applied to unsigned type, result still unsigned
2016-11-02 03:01:30 +01:00
ariel-
c0ef2ba55c Core/Unit: fix logic error in DamageInfo::ModifyDamage.
Previous code did not protect against m_damage underflow, rather only allow up to duplicate damage.
It now should work as intended.

Closes #18154
2016-11-02 02:56:40 +01:00
Aokromes
f88d3935fc Core/Unit: fix chain cc's not being diminished properly 2016-11-02 02:45:27 +01:00
Aokromes
7763d40846 Core/Unit: prematurely abort GetFactionTemplateEntry instead of retur…
…ning a null pointer

Factions should never be invalid for players/spawned creatures anyways
2016-10-24 14:06:59 +02:00
ariel-
b4ceb798e0 Core/AI: initial support for monster sparring (#17673) 2016-10-24 13:30:22 +02:00
Keader
1e60c73ad9 Core/Unit: Remove incorrect check that dont allow units attack your vehicle/passenger (#17932) 2016-10-24 13:27:40 +02:00
Aokromes
114db3b9a4 Revert "Core/Spells: Calculate hitMask and store it in DamageInfo/HealInfo structures"
This reverts commit a3e5afc027.
2016-10-21 07:27:15 +02:00
Aokromes
57d0a5d16d Revert "Core/Spells: Implementation of QAston proc system"
This reverts commit a70e4e26b3.
2016-10-21 07:27:04 +02:00