Commit graph

13 commits

Author SHA1 Message Date
tomrus88
66f554f74d Merge 'master' into 310
Please enter the commit message for your changes. Lines starting
2009-04-18 17:21:29 +04:00
VladimirMangos
d85e95295d [7668] Cleanup In CreatureAI function descriptions and AttackStart/AttackedBy use.
* Use AI::AttackStart calls only in case explicit request creature attack from core or AI code "attack it if can".
  Like taunt, pet handler attack command.
* Use AI::AttackedBy for reaction at hostile action "do something at hostile action"
  Like non-dot damage, swing, negative spell landing, or fade fear/etc.
  And provided by default call AttackStart if no current target.

This fix some problems, like:
* Civilian will react propertly at attack by another creature (not pet or player).
* Will not cases (at least triggred by core) when attack target start run to attacker before any real hostile action apply.
2009-04-14 10:14:10 +04:00
VladimirMangos
69fb9736cc [7667] Add to CreatureAI field pointing to creature itself. Use it instead diff. fields in subclases.
Also send pointer to AI constructors ans mark constructors as explicit.

This changes allow move now some generic often used AI code to CreatureAI helper functions.
2009-04-14 06:52:16 +04:00
VladimirMangos
840d7d5e0a [7588] Remove redendent GO support and switch back to original suggested by Lightguard version with Unit only case 2009-03-30 02:07:43 +04:00
Lightguard
4717f68984 [7586] New caster AI::SpellHitTarget call at casted spell landing to target (player/creature/pet/go)
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-30 00:44:35 +04:00
Lightguard
f280c96770 [7454] Support scripting for dummy spell effects.
Note: scripting calls specially added in end of function for allow calling only
      if internal implementaion absent for dummy effect.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-03-14 00:21:06 +03:00
VladimirMangos
bf5e1908d6 Drop Say/Yell/etc string versions.
1) DB based string_id versions must be used.
2) for debug purposes raw WorldObject::MonsterSay/etc versions can be used
2009-02-19 11:59:01 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
freghar
d75812749f [6922] Whitespace and newline fixes
This should fix the GCC "no newline at end of file" warnings.

Signed-off-by: freghar <compmancz@gmail.com>
2008-12-22 12:47:33 +03:00
Wyk3d
766654c85d [6828] Added script name indexing for creature, gameobject, item, areatrigger and instance scripts.
* loaded all distinct script names into one vector at server startup
* added custom loaders to convert the script names to indices
* converted all the script lookup functions to use the index instead of the name
2008-11-16 03:20:16 +02:00
VladimirMangos
6f190fedd4 Output DB/ScriptLib versions in ".server info" command.
Required support by used scripting library.
2008-10-26 16:29:39 +03:00
TheLuda
2c38c1a8ee Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more. 2008-10-15 18:25:49 +02:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00