[8237] Apply attack power multiplier to creature bonus attackpower. Author: Lynx3d

Note: mindmg/maxdmg in creature_template expected including attackpower part in its.
    attackpower field only show part of attackpower not affected by AP multiplier.

    Thanks also to Seizer for take part in reseach and patch review.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-30 11:02:07 +08:00
parent 7f6926dd3b
commit a94cccbf4d
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ DROP TABLE IF EXISTS `db_version`;
CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL,
`required_8227_01_mangos_spell_proc_event` bit(1) default NULL
`required_8237_01_mangos_creature_template` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--
@@ -0,0 +1,4 @@
-- ALTER TABLE db_version CHANGE COLUMN required_8227_01_mangos_spell_proc_event required_8237_01_mangos_creature_template bit;
UPDATE creature_template
SET mindmg = ROUND(mindmg + attackpower), maxdmg=ROUND(maxdmg+attackpower);