NPCs/Resistances

* evalue and display school immune mask
This commit is contained in:
Sarjuuk 2025-12-02 18:05:23 +01:00
parent 957f3bcf20
commit ca563f081e
10 changed files with 40 additions and 5 deletions

View file

@ -565,6 +565,7 @@ CREATE TABLE `aowow_creature` (
`resistance6` smallint(6) NOT NULL DEFAULT 0,
`racialLeader` tinyint(3) unsigned NOT NULL DEFAULT 0,
`mechanicImmuneMask` int(10) unsigned NOT NULL DEFAULT 0,
`schoolImmuneMask` int(10) unsigned NOT NULL DEFAULT 0,
`flagsExtra` int(10) unsigned NOT NULL DEFAULT 0,
`scriptName` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),

View file

@ -0,0 +1,4 @@
ALTER TABLE aowow_creature
ADD COLUMN `schoolImmuneMask` int(10) unsigned NOT NULL DEFAULT 0 AFTER `mechanicImmuneMask`;
UPDATE `aowow_dbversion` SET `sql` = CONCAT(IFNULL(`sql`, ''), ' creature');

View file

@ -71,6 +71,7 @@ CLISetup::registerSetup("sql", new class extends SetupScript
IFNULL(ctr1.Resistance, 0), IFNULL(ctr2.Resistance, 0), IFNULL(ctr3.Resistance, 0), IFNULL(ctr4.Resistance, 0), IFNULL(ctr5.Resistance, 0), IFNULL(ctr6.Resistance, 0),
RacialLeader,
mechanic_immune_mask,
spell_school_immune_mask,
flags_extra,
ScriptName
FROM creature_template ct