75 Commits

Author SHA1 Message Date
Olion
98dfabe70b [Loot] 50% player damage to mob reuired for reward
Unchanged TC backport. Not fully tested.
2016-02-20 22:17:26 +00:00
H0zen
6c4ca38d56 Correct spell damage taken on melee attacks.
- spell damage taken should be affected by auras id 14 (SPELL_AURA_MOD_DAMAGE_TAKEN)
    - fixes issue https://www.getmangos.eu/issue.php?issueid=605
2016-02-20 02:21:27 +02:00
Charles A Edwards
51ba36d565 Spell class - Fix for inaccessible class data
Accessor functions created for protected member, m_selfContainer
2016-02-01 17:57:09 +00:00
H0zen
1a36f1c039 Fix Unit::SetConfused to work on players.
- Also removed a false positive from being output as error in MovementHandler.cpp
2016-01-22 16:38:10 +02:00
xfury
d4113e6757 [Core] Fix Grounding Totem delay bug.
fix the bug of grounding totem delay it's effect for 3s
2016-01-20 21:19:59 +00:00
Antz
3967eddc87 [2016] Happy New Year from the MaNGOS Team 2015-12-31 21:15:37 +00:00
Olion
53e80192cc Stop motion of players when fear/confuse fades 2015-11-27 00:22:37 +00:00
Olion
86f478283d [Player] Player movement interrupt when fear/confuse fades
Should be improved due to difference between StopMoving() and InterruptMoving().
2015-11-27 00:21:31 +00:00
Olion
f6cc5bed24 [AI] Fake combat state is also a reason to prevent mob evade 2015-11-26 23:49:15 +00:00
Olion
db7da781a2 [Pets] A bit better decoupling of the movement speeds of pet and its master. 2015-11-26 23:47:47 +00:00
Olion
0758271cf4 Minor refactoring of detect visibility code
The predefined method of getting aura modifier is used for clarity.
2015-11-10 23:44:27 +00:00
Olion
ef4564adfa [Spell] Minor refactoring
Like HasSpellEffect method here, other now global-scoped methods from SpellMgr.h should be transfered into corresponding classes/structures (TODO).
2015-11-10 23:43:26 +00:00
Olion
b35a53e2b9 [Spell] Extra attack: instant or on the next swing
Known issue: wrong combat logging order. Though the timestamp for spelleffect and instant extra attack is the same, the spelleffect appears later in the log.
Was tested on the Windfury weapon only. Main idea was taken from the TC.
2015-11-10 23:39:47 +00:00
Olion
ab4425ad35 Better handling of movement generators when fear/confuse ends for a player.
Untested as a fix, but it is an improvement anyway.
2015-11-10 23:36:39 +00:00
Olion
9b0c737605 [Pets] Allow pet motion speed change like other mobs 2015-11-10 23:33:51 +00:00
xfurry
dc0b0e9f7a [Core] Fix logic error introduced in [cz2670] [cz2675] 2015-09-03 21:18:15 +01:00
xfurry
310684e4a4 [Core] Allow dying creatures to deal damage when casting spells [cz2670]
This will fix damage spells casts on creature death
2015-07-08 23:08:52 +01:00
fgreinus
fa303fb829 [Core] Implement CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN [cz2664] 2015-07-08 21:47:03 +01:00
hallabro
be5ee32960 [Core] Fix stealthing animation for group members. [cz2662]
Previously stealthed party members would go invisible for a brief moment
which causes some animation issues.

The stealthed players should be visible during transition for other group and raid members.
2015-07-07 22:24:48 +01:00
xfurry
297e28044e [Core] Make use of attribute SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY. [cz2660]
This will allow all spells that have this attribute to be casted on targets
that are immune to certain types of damage or spells.

This involves mostly spells that are part of a script or event.
2015-07-07 22:12:04 +01:00
Olion
321f7fb739 Gcc build: get rid of few warnings 2015-04-07 00:15:24 +03:00
stfx
d6fc18dc37 [Core] Remove unused function parameters (c2647) 2015-03-26 13:14:51 +00:00
schmoozerd
95073a4d1c [Waypoints] Complete redesign of waypoint system
Rewrite Waypoint related commands (c2612)
Toggle the commands .wp add .wp modify and .wp show to be able to work with waypoints from creature_movement_template

Technical changes:
* Move Path Selection to WaypointManager
* Set visual waypoints to be summoned npcs

Remove .npc addmove command to add a waypoint. (c2619)
For this .wp add command is expected to be used

Remove unneeded functions from WaypointManager (c2620)

Waypoint Commands: Improve export command, remove import command (c2621)
* Also finally drop the wpguid columns from creature_movement[_template]
* Also remove all static spawns of id=1 (they are usually waypoints from the old system)
* Fix a minor bug in WaypointManager than can result in a crash if bad params are passed

Waypoint-Commands: Prefer current path's movement for handling (c2626)

WaypointMovement: Allow External sources to load waypoints (with different path ids) (c2627)

* Add SetExternalWaypointTable(..) function to ScriptMgr.h scope to be able to define from which table external waypoints are loaded
* Add AddWaypointFromExternal(..) function to ScriptMgr.h scope to load points into WaypointManager
* Expand MotionMaster::MoveWaypoint function to use source and pathId for specifying which path to load
* Expand MotionMaster::MoveWaypoint function to use some overwrite information for "entry".
  This will be helpfull to have one path for mobs with different entry (ie ally/horde npcs with same behaviour)
* For externally loaded waypoints let CreatureAI::MovementInform have EXTERNAL_WAYPOINT_MOVE(256) + pathId as type.
  This will allow an external user to know which of "his" paths is used
* Adapt the related commands a little bit such that parts of the commands will also be usable for external paths
  At the moment .wp show and .wp export work with external paths.

WaypointMovement: Add support to set the next waypoint (c2635)
* Also add support to initialize a path with waittime before starting movement
* Add additional types for external use of MovementInform such that MovementInform is called when a waypoint is started, or when the last waypoint is handled
* Improve some minor technical issues

Let .wp add command start with 1 as first waypoint (c2640)
2015-03-26 01:21:44 +00:00
Antz
c9b37c73fa [Movement] Reverted Rel18 movement flag changes 2015-03-23 10:58:10 +00:00
Antz
386f5374ab [Release20] Initial Release 20 2015-03-22 22:10:05 +00:00