Spell proc event
Материал из YTDB DataBase
(→SchoolMask: Перевел частично - Lightunit) |
(→SpellFamilyName: Перевел - Lightunit) |
||
Строка 124: | Строка 124: | ||
====SpellFamilyName==== | ====SpellFamilyName==== | ||
- | + | Значение в поле контролирует, к какой семье(группе) относится заклинание, что делает возможным срабатывание заклинания только в этой семье(группе). | |
{| border=1 cellpadding=3 cellspacing=0 | {| border=1 cellpadding=3 cellspacing=0 | ||
- | ! ID !! | + | ! ID !! Семья(группа) |
|- | |- | ||
| 0 || Generic | | 0 || Generic | ||
|- | |- | ||
- | | 3 || | + | | 3 || Маг |
|- | |- | ||
- | | 4 || | + | | 4 || Воин |
|- | |- | ||
- | | 5 || | + | | 5 || Чернокнижник |
|- | |- | ||
- | | 6 || | + | | 6 || Жрец |
|- | |- | ||
- | | 7 || | + | | 7 || Друид |
|- | |- | ||
- | | 8 || | + | | 8 || Разбойник |
|- | |- | ||
- | | 9 || | + | | 9 || Охотник |
|- | |- | ||
- | | 10 || | + | | 10 || Паладин |
|- | |- | ||
- | | 11 || | + | | 11 || Шаман |
|- | |- | ||
- | | 15 || | + | | 15 || Рыцарь смерти |
|- | |- | ||
- | | 13 || | + | | 13 || Зелья |
|} | |} | ||
+ | |||
====SpellFamilyMask==== | ====SpellFamilyMask==== | ||
This field controls what spells' family flags can proc the triggered spell. | This field controls what spells' family flags can proc the triggered spell. |
Версия 10:39, 19 февраля 2010
|
Back to world database list of tables.
The `spell_proc_event` table
This table holds information on what events (or procs) certain spells are activated. All spells in this table must have apply a SPELL_AURA_PROC_TRIGGER_SPELL (42), SPELL_AURA_DUMMY (4) or SPELL_AURA_OVERRIDE_CLASS_SCRIPTS (112) aura. Any entries in this table will overwrite the existing proc settings in the spell's DBC entry.
Structure
Field | Type | Null | Key | Default | Extra |
entry | smallint(6) unsigned | NO | PRI | 0 | |
SchoolMask | tinyint(4) | NO | 0 | ||
SpellFamilyName | smallint(6) unsigned | NO | 0 | ||
SpellFamilyMask0 | bigint(40) unsigned | NO | 0 | ||
SpellFamilyMask1 | bigint(40) unsigned | NO | 0 | ||
SpellFamilyMask2 | bigint(40) unsigned | NO | 0 | ||
procFlags | int(11) unsigned | NO | 0 | ||
procEx | int(10) unsigned | NO | 0 | ||
ppmRate | float | NO | 0 | ||
CustomChance | float unsigned | NO | 0 | ||
Cooldown | int(10) unsigned | NO | 0 |
Description of the fields
entry
Указывается номер заклинания, который должен срабатывать при определённых событиях.
SchoolMask
В поле указывается значение контролирующее, какого типа будет нанесен урон от заклинания при срабатывании. For example if an aura procs only when the unit it is casted upon is hit by shadow spells (spell 34914). To combine spell schools, just add the bit values.
School ID | Bit | Название |
---|---|---|
0 | 1 | Физический |
1 | 2 | Священный |
2 | 4 | Огненный |
3 | 8 | Природный |
4 | 16 | Ледяной |
5 | 32 | Тененвой |
6 | 64 | Тайный |
SpellFamilyName
Значение в поле контролирует, к какой семье(группе) относится заклинание, что делает возможным срабатывание заклинания только в этой семье(группе).
ID | Семья(группа) |
---|---|
0 | Generic |
3 | Маг |
4 | Воин |
5 | Чернокнижник |
6 | Жрец |
7 | Друид |
8 | Разбойник |
9 | Охотник |
10 | Паладин |
11 | Шаман |
15 | Рыцарь смерти |
13 | Зелья |
SpellFamilyMask
This field controls what spells' family flags can proc the triggered spell. Taken from Spell.dbc field 212-214.
procFlags
A bitmask controlling what events trigger the spell. To combine possible events, add the proc bits together.
BitMask | Name | Comments |
---|---|---|
0 | PROC_FLAG_NONE | None |
1 | PROC_FLAG_HIT_MELEE | On melee hit |
2 | PROC_FLAG_STRUCK_MELEE | On being hit by melee damage |
4 | PROC_FLAG_KILL_XP_GIVER | On kill target giving XP or honor |
8 | PROC_FLAG_SPECIAL_DROP | |
16 | PROC_FLAG_DODGE | On dodge melee attack |
32 | PROC_FLAG_PARRY | On parry melee attack |
64 | PROC_FLAG_BLOCK | On block attack |
128 | PROC_FLAG_TOUCH | On being touched (for bombs, probably?) |
256 | PROC_FLAG_TARGET_LOW_HEALTH | On deal damage to enemy with 20% or less health |
512 | PROC_FLAG_LOW_HEALTH | On health dropped below 20% |
1024 | PROC_FLAG_STRUCK_RANGED | On being struck ranged |
2048 | PROC_FLAG_HIT_SPECIAL | (!)Removed, may be reassigned in future |
4096 | PROC_FLAG_CRIT_MELEE | On crit melee |
8192 | PROC_FLAG_STRUCK_CRIT_MELEE | On being critically struck in melee |
16384 | PROC_FLAG_CAST_SPELL | On spell cast |
32768 | PROC_FLAG_TAKE_DAMAGE | On damage taken |
65536 | PROC_FLAG_CRIT_SPELL | On spell critical hit |
131072 | PROC_FLAG_HIT_SPELL | On spell hit |
262144 | PROC_FLAG_STRUCK_CRIT_SPELL | On being critically struck by a spell |
524288 | PROC_FLAG_HIT_RANGED | On getting ranged hit |
1048576 | PROC_FLAG_STRUCK_SPELL | On being struck by a spell |
2097152 | PROC_FLAG_TRAP | On trap activation |
4194304 | PROC_FLAG_CRIT_RANGED | On getting ranged crit |
8388608 | PROC_FLAG_STRUCK_CRIT_RANGED | On being critically struck by a ranged attack |
16777216 | PROC_FLAG_RESIST_SPELL | On resist enemy spell |
33554432 | PROC_FLAG_TARGET_RESISTS | On enemy resisted spell |
67108864 | PROC_FLAG_TARGET_AVOID_ATTACK | On enemy blocks/dodges/parries |
134217728 | PROC_FLAG_HEAL | On heal of someone |
268435456 | PROC_FLAG_CRIT_HEAL | On critical healing effect |
536870912 | PROC_FLAG_HEALED | On healed by someone |
1073741824 | PROC_FLAG_TARGET_BLOCK | On enemy blocks |
2147483648 | PROC_FLAG_MISS | On miss melee attack |
procEx
ProcEx is an addition to procFlags.
BitMask | Name | Comments |
---|---|---|
0 | PROC_EX_NONE | Can tigger on Hit/Crit only |
1 | PROC_EX_NORMAL_HIT | Normal hit with damaging spell |
2 | PROC_EX_CRITICAL_HIT | Critical hit with damaging spell |
4 | PROC_EX_MISS | Miss |
8 | PROC_EX_RESIST | Resist |
16 | PROC_EX_DODGE | Dodge |
32 | PROC_EX_PARRY | Parry |
64 | PROC_EX_BLOCK | Block |
128 | PROC_EX_EVADE | Evade |
256 | PROC_EX_IMMUNE | Immune |
512 | PROC_EX_DEFLECT | Deflect |
1024 | PROC_EX_ABSORB | Absorb |
2048 | PROC_EX_REFLECT | Reflect |
4096 | PROC_EX_INTERRUPT | Interrupt |
8192 | PROC_EX_RESERVED1 | unused |
16384 | PROC_EX_RESERVED2 | unused |
32768 | PROC_EX_RESERVED3 | unused |
65536 | PROC_EX_EX_TRIGGER_ALWAYS | used for drop charges |
131072 | PROC_EX_EX_ONE_TIME_TRIGGER | unused, trigger always but only one time |
ppmRate
This field controls the times per minute that the spell should proc. If zero, then the value is taken from the DBC entry.
CustomChance
This field serves to define custom chance for triggering. It is supposed to be given in percentage.
Cooldown
This field is used to define hidden cooldown on the spell. It is supposed to be given in seconds.
(MaNGOS 0.13)