PDA

Просмотр полной версии : [10829] Update SpellFamily check functions.


newsbot
06.12.2010, 08:49
автор: VladimirMangos


<pre>m sql/mangos_spell_check.sql
m src/game/DBCEnums.h
m src/game/DBCStructure.h
m src/game/SpellEffects.cpp
m src/game/SpellMgr.h
m src/game/Unit.cpp
m src/game/Unit.h
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[10829] Update SpellFamily check functions.

* Move SPELLFAMILY_* to DBCEnums.h and name it as SpellFamily
* Use enum in Unit::GetAura, move family mask code to new SpellEntry helper function.
* Avoid all auras scan in search of triggred spell for 20243.</pre>




Дальше... (https://github.com/mangos/mangos/commit/6c5ac3d896ba1136c8a9c15ebd9c1e234a2798a9)