Commit graph

25 commits

Author SHA1 Message Date
Schmoozerd
c7a07a7dc6 [12676] AI-Event throwing and receiving implementation
Add new AI hooks to
* SendAIEvent (either around the npc, or to a specified npc)
* ReceiveAIEvent (hook to receive sent events)
2020-02-17 09:20:25 +00:00
billy1arm
c94dbc84c2 [m] Lots of Doxygen fixes/additions - thanks to lfxGroove 2020-02-17 08:59:03 +00:00
billy1arm
ef445ea523 [12632] Revert previous commit (see Notes) 2020-02-17 00:54:15 +00:00
Schmoozerd
dc3de04d62 [c12616] Simplify use of CombatReach 2020-02-17 00:24:44 +00:00
Schmoozerd
962883552c [c12596] Change default reaction on aggro for non-combat movement mobs 2020-02-17 00:06:29 +00:00
Schmoozerd
a27787851c [c12537] Update Authorship information
(based on commit [12388] - 037f217)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
2020-02-16 21:27:46 +00:00
Schmoozerd
a05738717a [c12536] Happy New Year 2013
Update authorship information and prepare for easier ways next year

Signed-off-by: Schmoozerd <schmoozerd@cmangos>

(based on commit [12325] - b7dbcda)
2020-02-16 21:25:01 +00:00
Salja
22bfaa12b0 Mage 400 INTO master/434
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 01:59:51 +00:00
Schmoozerd
c5c09cee3c Various Cleanups (game C-E) 2012-07-19 21:45:58 +02:00
Schmoozerd
8068dcf6dd [11875] Update Copyright notice to year 2012
Start timemachine and a Happy new year to all!
2012-01-16 17:43:59 +01:00
SilverIce
70a6a1ce76 [11825] Implement creature offhand attack. based on patch from maxxx2021
also drop some archaic Unit's code
2011-10-16 00:01:06 +03:00
VladimirMangos
b4f2e3d1a0 [11460] Use ObjectGuids in last missing cases in AI classes. 2011-05-10 11:06:26 +04:00
VladimirMangos
caf9f0cae2 [11109] Move DoMeleeAttackIfReady to CreatureAI and reuse more wide. 2011-02-05 21:20:21 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
kid 10
b435aa350f [10701] Correct check percent spell costs in AI::CanCast
Also use uint32 for spell cost fields/results

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-08 22:38:35 +03:00
VladimirMangos
b4b45333d8 [10053] Use UNIT_STAT_CONTROLED for mark unit state under direct player control.
* This allow prevent move home/to caster at apply
* Also replace AI and reset movegens at control time
* Also stop combat and clear threat/hostile list at lost control for prevent combat with freindly units.
2010-06-14 10:27:44 +04:00
NoFantasy
6469c21c41 [9410] Correct a typo in enum name, CAST_INTERRUPT_PREVIOUS
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-02-19 02:13:46 +01: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
VladimirMangos
4355772a65 [9067] Restore build at *nix. 2009-12-25 21:38:03 +03:00
NoFantasy
f4c6cf7337 [9062] Implement two helper-functions for casting spell in creatureAI.
Function will return a cast result, with fail reasons if spell can not be casted (can be used to take alternative action). Please note this is not a full list of cast fail errors/reasons, but will cover a few basic errors that may occur.
The virtual function CanCastSpell() may be adjusted for custom needs from script library if not the default is sufficient.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-25 13:05:38 +01: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
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
ce351382a3 Remove unused src/game/HateMatrix.h and references.
Also one explicit include for used header.
2008-11-04 22:28:06 +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