summaryrefslogtreecommitdiff
path: root/docs/pet_aura.md
blob: 5f5dd276a51e55c06772a4d4e2b4bf1d2c5aaf1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# pet\_aura

[<-Back-to:Characters](database-characters.md)

**The \`pet\_aura\` table**

**Structure**

| Field                | Type      | Attributes | Key | Null | Default | Extra | Comment                       |
| -------------------- | --------- | ---------- | --- | ---- | ------- | ----- | ----------------------------- |
| [guid][1]            | INT       | UNSIGNED   | PRI | NO   | 0       |       | Global Unique Identifier      |
| [casterGuid][2]      | BIGINT    | UNSIGNED   | PRI | NO   | 0       |       | Full Global Unique Identifier |
| [spell][3]           | MEDIUMINT | UNSIGNED   | PRI | NO   | 0       |       |                               |
| [effectMask][4]      | TINYINT   | UNSIGNED   | PRI | NO   | 0       |       |                               |
| [recalculateMask][5] | TINYINT   | UNSIGNED   |     | NO   | 0       |       |                               |
| [stackCount][6]      | TINYINT   | UNSIGNED   |     | NO   | 1       |       |                               |
| [amount0][7]         | MEDIUMINT | SIGNED     |     | NO   |         |       |                               |
| [amount1][8]         | MEDIUMINT | SIGNED     |     | NO   |         |       |                               |
| [amount2][9]         | MEDIUMINT | SIGNED     |     | NO   |         |       |                               |
| [base_amount0][10]   | MEDIUMINT | SIGNED     |     | NO   |         |       |                               |
| [base_amount1][11]   | MEDIUMINT | SIGNED     |     | NO   |         |       |                               |
| [base_amount2][12]   | MEDIUMINT | SIGNED     |     | NO   |         |       |                               |
| [maxDuration][13]    | INT       | SIGNED     |     | NO   | 0       |       |                               |
| [remainTime][14]     | INT       | SIGNED     |     | NO   | 0       |       |                               |
| [remainCharges][15]  | TINYINT   | UNSIGNED   |     | NO   | 0       |       |                               |

[1]: #guid
[2]: #casterguid
[3]: #spell
[4]: #effectmask
[5]: #recalculatemask
[6]: #stackcount
[7]: #amount
[8]: #amount
[9]: #amount
[10]: #baseamount
[11]: #baseamount
[12]: #baseamount
[13]: #maxduration
[14]: #remaintime
[15]: #remaincharges

**Description of the fields**

### guid

The GUID of the target affected by the aura. See [character\_pet.id](character_pet#id).

### casterGuid

The GUID of the player who casted the aura. See [characters.guid](characters#guid).

### spell

The spell from which the aura was applied. See [Spell.dbc](spell) column 1.

### effectMask

The effect index of the spell from which the aura came from. A spell has up to three effects, with the index being 0, 1, or 2.

### recalculateMask

`field-no-description|5`

### stackCount

Determines how many stacks of the spell the character has.

### amount

The modifier value associated with the aura.

### base\_amount

`field-no-description|10-12`

### maxDuration

The maximum duration of the aura.

### remainTime

The time remaining in seconds on the aura. -1 means that the aura is indefinite.

### remainCharges

The number of charges remaining on the aura.