存储宠物身上的所有光环效果和持续时间
该表存储宠物身上的光环效果信息。
| 字段名 | 数据类型 | 说明 |
|---|---|---|
| guid | int UNSIGNED | 宠物全局唯一标识符 |
| casterGuid | bigint UNSIGNED | 施法者全局唯一标识符 |
| spell | int UNSIGNED | 法术ID |
| effectMask | tinyint UNSIGNED | 效果掩码 |
| recalculateMask | tinyint UNSIGNED | 重新计算掩码 |
| stackCount | tinyint UNSIGNED | 堆叠次数(默认1) |
| amount0-2 | int | 效果0-2的当前值 |
| base_amount0-2 | int | 效果0-2的基础值 |
| maxDuration | int | 最大持续时间(毫秒) |
| remainTime | int | 剩余时间(毫秒) |
| remainCharges | tinyint UNSIGNED | 剩余充能次数 |
-- 查询特定宠物的所有光环效果
SELECT * FROM pet_aura WHERE guid = 宠物ID;
-- 查询特定法术ID的光环效果
SELECT * FROM pet_aura WHERE spell = 法术ID;
-- 查询即将到期的光环效果
SELECT * FROM pet_aura WHERE remainTime < 60000; -- 剩余时间小于1分钟