PDA

Просмотр полной версии : [11489] Remove the old and custom UNIT_NPC_FLAG_GUARD for creatures.


newsbot
14.05.2011, 21:22
автор: NoFantasy


<pre>m sql/mangos.sql
+ sql/updates/11489_01_mangos_creature_template.sql
m src/game/Creature.h
m src/game/CreatureAISelector.cpp
m src/game/CreatureEventAI.cpp
m src/game/GuardAI.cpp
m src/game/Object.cpp
m src/game/Unit.h
m src/shared/revision_nr.h
m src/shared/revision_sql.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11489] Remove the old and custom UNIT_NPC_FLAG_GUARD for creatures.

Existing data moved to flags_extra field, with value CREATURE_FLAG_EXTRA_GUARD (0x400 / 1024).
Remove isGuard() from Unit class to a new IsGuard() function in Creature class.

Signed-off-by: NoFantasy <nofantasy@nf.no></pre>




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