PDA

Просмотр полной версии : [9062] Implement two helper-functions for casting spell in creatureAI.


newsbot
25.12.2009, 15:10
<pre>m src/game/CreatureAI.cpp
m src/game/CreatureAI.h
m src/shared/revision_nr.h

[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></pre>



Дальше... (http://github.com/mangos/mangos/commit/822255cbc1982662e46ff8fa5572876d06158cd4)