mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
* Add new creature_template field `dmg_multiplier` * Make attackpower include in creature damage not dependent from attack speed. NOTE: included in sql update recalculation for creature damage related fields only make temporary possible usable values. Real values need revisited by DB devs for correctness. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
9 lines
553 B
SQL
9 lines
553 B
SQL
ALTER TABLE db_version CHANGE COLUMN required_7902_02_mangos_pool_gameobject required_7904_01_mangos_creature_template bit;
|
|
|
|
ALTER TABLE creature_template
|
|
ADD COLUMN dmg_multiplier float NOT NULL default '1' AFTER attackpower;
|
|
|
|
UPDATE creature_template SET mindmg = round(mindmg + attackpower / 14);
|
|
UPDATE creature_template SET maxdmg = round(maxdmg + attackpower / 14);
|
|
UPDATE creature_template SET attackpower = round((maxdmg + mindmg) * 0.3);
|
|
UPDATE creature_template SET mindmg = round(mindmg * 0.7), maxdmg = round(maxdmg * 0.7);
|