[7941] Restore autocast pet spell state at load/resummon
[getmangos.git] / sql / updates / 7904_01_mangos_creature_template.sql
blob0f984b74e78becfc9d857a6f297d408dc2724a7b
1 ALTER TABLE db_version CHANGE COLUMN required_7902_02_mangos_pool_gameobject required_7904_01_mangos_creature_template bit;
3 ALTER TABLE creature_template
4   ADD COLUMN dmg_multiplier float NOT NULL default '1' AFTER attackpower;
6 UPDATE creature_template SET mindmg      = round(mindmg + attackpower / 14);
7 UPDATE creature_template SET maxdmg      = round(maxdmg + attackpower / 14);
8 UPDATE creature_template SET attackpower = round((maxdmg + mindmg) * 0.3);
9 UPDATE creature_template SET mindmg      = round(mindmg * 0.7), maxdmg = round(maxdmg * 0.7);