From d46ff5b42a52922a6e3f8b6e298ad89eb48ad5f7 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Wed, 3 Feb 2021 03:47:05 +0100 Subject: chore(c_t): Add spell_school_immune_mask (#391) --- docs/creature_template.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/creature_template.md b/docs/creature_template.md index 9ca754b..e48a861 100644 --- a/docs/creature_template.md +++ b/docs/creature_template.md @@ -81,6 +81,7 @@ This table contains the description of creatures. Each spawned creature is an in | [movementId](#movementid) | int(11) unsigned | NO | | 0 | | | | [RegenHealth](#regenhealth) | tinyint(3) unsigned | NO | | 1 | | | | [mechanic_immune_mask](#mechanic_immune_mask) | int(10) unsigned | NO | | 0 | | | +| [spell_school_immune_mask](#spell_school_immune_mask) | int(3) unsigned | NO | | 0 | [flags_extra](#flags_extra) | int(10) unsigned | NO | | 0 | | | | [ScriptName](#scriptname) | char(64) | NO | | | | | | [VerifiedBuild](#verifiedbuild) | smallint(5) | YES | | 0 | | | @@ -679,6 +680,22 @@ Uses references from SpellMechanic.dbc. To combine immunities just add values. Immune to everything corresponds to the value 2147483647 (0x3FFF FFFF). +#### spell_school_immune_mask + +This makes the creature immune to specific spell schools. + +| Flag | Type | +| - | - | +| 1 | SPELL_SCHOOL_NORMAL | +| 2 | SPELL_SCHOOL_HOLY | +| 4 | SPELL_SCHOOL_FIRE | +| 8 | SPELL_SCHOOL_NATURE | +| 16 | SPELL_SCHOOL_FROST | +| 32 | SPELL_SCHOOL_SHADOW | +| 64 | SPELL_SCHOOL_ARCANE | + +To combine immunities just add values. Immune to everything corresponds to the value 127. + #### flags_extra These flags control certain creature specific attributes. Flags can be added together to apply more than one. -- cgit