Commit graph

26 commits

Author SHA1 Message Date
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
DasBlub
61102e3b16 [10610] Renamed some functions from the Creature class
Also other classes have been affected, due to the use of search&replace.
This will probably break some patches and 3rd party libraries, so make sure to update them if required.
Thanks to Phille for the original idea and patch!
2010-10-14 22:07:04 +02:00
NoFantasy
04b62bb9ee [10420] Avoid send stop packet in PointMovementGenerator when unit is not moving
Also never send stop packet when destinationHolder hasArrived, it's expected that unit is already not moving.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-29 11:04:35 +02:00
VladimirMangos
b658b25ff8 [9618] More use ObjectGuid in spell/etc code 2010-03-25 13:59:46 +03:00
VladimirMangos
c179c45087 [9461] Some another cases when movegen can be lost while updating. 2010-02-27 01:21:16 +03:00
AlexDereka
ebfb0f9835 [9389] Cleanup config data. Use proper names and expected types. 2010-02-15 15:29:06 +03:00
tomrus88
db547a008a Get rid of monster movement flags, since it's really spline flags.
Thanks to Ralek for research.
2010-02-07 15:03:36 +03:00
VladimirMangos
36d90d6040 [9241] Implement AI/EventAI calls at summoned creature die/despawn
* New CreatureAI::SummonedCreatureJustDie called for owner at temporary summoned creature die.
* New EVENT_T_SUMMONED_JUST_DIE (25) for proccess CreatureAI::SummonedCreatureJustDie event
* New EVENT_T_SUMMONED_JUST_DESPAWN (26) for proccess CreatureAI::SummonedCreatureJustDespawn event
* Some code cleanups.
2010-01-23 14:41:38 +03:00
VladimirMangos
797dd6d931 [9232] Replace list bool fields with exclusive true values by subtype field in Creature.
Use it in recently added code instead dynamic_cast use.
2010-01-21 22:23:17 +03:00
NoFantasy
0ed769c828 [9229] Add AI function SummonedMovementInform
Informing summoner of summoned when it reach a movement point (MovePoint)
2010-01-21 19:01:16 +01:00
Derex
a6a5935406 [9211] Fixed recent build problems at *nix.
Thanks to DasBlub and Lightguard for teating.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-19 01:22:41 +03:00
VladimirMangos
6a2e8064f1 [9208] Big cleanup in UNIT_STAT_* use
* Re-number enums by function groups and use where possible new defined masks in code instead raw enum |-lists.
* Avoid use movement generator generic state markers like UNIT_STAT_CONFUSED for mark movement stoped.
  Add special shadow UNIT_STAT_CONFUSED_MOVE/etc states for like use.
  UNIT_STAT_CONFUSED in like case will be safe expect use for normal checks confused state presence
  And UNIT_STAT_CONFUSED_MOVE for check real move in this state
2010-01-18 11:59:10 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
balrok
02d45b4b54 [8625] feign_death cleanups
use an extra function for setfeigndeath()
like it's done with setfeared already..
allow to apply feigndeath on creatures too
avoid moving of creatures with feign death applied
and start attacking last victim when feigndeath disappears
2009-10-11 14:22:52 +02:00
NoFantasy
cac822949f [8273] Use UNIT_STAT_ROAMING for PointMovement generator.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-07-29 12:39:14 +02:00
VladimirMangos
21a6a26386 [8077] Resolve mixed store and use 2 different flags values types in single field.
* Create new monster move field in Creature class and use it in all cases when expected use MONSTER_MOVE_* flags.
* Store and use MOVEMENTFLAG_* values in field in MovementInfo structure of Player class.
* Cleanups and fix related code.

NOTE: DB in creature_addon store values similar MONSTER_MOVE_* flags, scritps also expected set only this flags.
2009-06-26 01:57:34 +04:00
VladimirMangos
526cf21d33 Merge commit 'origin/master' into 310 2009-06-08 11:28:08 +04:00
ApoC
6d8867d0fc [7979] Fixed typo in [7977].
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-08 00:59:36 +02:00
ApoC
ddf1525e40 [7977] Fixed PointMovementGenerator to correctly set UNIT_STAT_MOVING on initialize.
This may fix problem with creatures moving after death in connection with AssistanceMovementGenerator
Signed-off-by: ApoC <apoc@nymfe.net>
2009-06-08 00:46:58 +02:00
tomrus88
52effd119c Merge commit 'origin/master' into 310
Conflicts:
	src/game/TargetedMovementGenerator.cpp
	win/VC71/shared.vcproj
2009-05-21 20:17:19 +04:00
Neo2003
fa03b3663a Mobs fleeing and getting assistance feature implementaion.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also rename ACTION_T_FLEE to ACTION_T_FLEE_FOR_ASSIST for clear use
2009-05-21 01:33:28 +04:00
tomrus88
7e938af972 Updated to latest PTR client build 9868. 2009-05-05 10:41:22 +04:00
balrok
54f2dbefa0 [7403] much more unneeded includes removed
now i extended my script:
NAME="Chat"; ack -c $NAME | ack ":1$" | sed 's/:1//' | xargs /usr/bin/ack-grep -l "include \""$NAME".h\"" | xargs /bin/sed -i '/include "'$NAME'.h"/d'

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-08 02:22:17 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
88b1974df6 Fixed warnings, unused code and typos.
Including fix  _SCallback for 3 params, triggred mode correct call for .cast back and .cast target.
Remove outdated code for support old 19421 (and ranks) implementation in client data.
2008-11-05 05:06:35 +03:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00