diff options
| author | Discover- <amort11@hotmail.com> | 2012-06-19 00:07:20 +0200 |
|---|---|---|
| committer | Discover- <amort11@hotmail.com> | 2012-06-19 00:07:20 +0200 |
| commit | e190a202cac3787c95749a0a628fa2dd6b082015 (patch) | |
| tree | 0e95db6d80e5662a4b2f951c15ba5f21ad2e3b52 /src/server/game/Entities | |
| parent | 29f1ab2438d6bf7ac1370696033788df46f9ff27 (diff) | |
Core/CreatureAI: Implement an OnSpellClick hook instead of the ugly way that uses DoAction with EVENT_SPELLCLICK.
Core/SmartAI: Implement SMART_EVENT_ON_SPELLCLICK. Parameter is the clicker.
If someone could update the wiki accordingly for SAI I would appreciate that. Thanks to @Shauren for some help!
Diffstat (limited to 'src/server/game/Entities')
| -rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index a261a633499..50c8920a0d3 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -16935,7 +16935,7 @@ bool Unit::HandleSpellClick(Unit* clicker, int8 seatId) Creature* creature = ToCreature(); if (creature && creature->IsAIEnabled) - creature->AI()->DoAction(EVENT_SPELLCLICK); + creature->AI()->OnSpellClick(clicker); return true; } |
