mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/DataStores: Fixed SpellPowerEntry structure
* ManaCosts are signed
This commit is contained in:
3
sql/updates/hotfixes/master/2017_07_27_00_hotfixes.sql
Normal file
3
sql/updates/hotfixes/master/2017_07_27_00_hotfixes.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `spell_power`
|
||||
CHANGE `ManaCost` `ManaCost` INT(11) DEFAULT 0 NOT NULL,
|
||||
CHANGE `ManaCostAdditional` `ManaCostAdditional` INT(11) DEFAULT 0 NOT NULL;
|
||||
@@ -4310,7 +4310,7 @@ struct SpellPowerLoadInfo
|
||||
static DB2FieldMeta const fields[] =
|
||||
{
|
||||
{ false, FT_INT, "SpellID" },
|
||||
{ false, FT_INT, "ManaCost" },
|
||||
{ true, FT_INT, "ManaCost" },
|
||||
{ false, FT_FLOAT, "ManaCostPercentage" },
|
||||
{ false, FT_FLOAT, "ManaCostPercentagePerSecond" },
|
||||
{ false, FT_INT, "RequiredAura" },
|
||||
@@ -4320,7 +4320,7 @@ struct SpellPowerLoadInfo
|
||||
{ false, FT_INT, "ID" },
|
||||
{ true, FT_INT, "ManaCostPerLevel" },
|
||||
{ true, FT_INT, "ManaCostPerSecond" },
|
||||
{ false, FT_INT, "ManaCostAdditional" },
|
||||
{ true, FT_INT, "ManaCostAdditional" },
|
||||
{ false, FT_INT, "PowerDisplayID" },
|
||||
{ false, FT_INT, "UnitPowerBarID" },
|
||||
};
|
||||
|
||||
@@ -2521,7 +2521,7 @@ struct SpellMiscEntry
|
||||
struct SpellPowerEntry
|
||||
{
|
||||
uint32 SpellID;
|
||||
uint32 ManaCost;
|
||||
int32 ManaCost;
|
||||
float ManaCostPercentage;
|
||||
float ManaCostPercentagePerSecond;
|
||||
uint32 RequiredAura;
|
||||
@@ -2531,7 +2531,7 @@ struct SpellPowerEntry
|
||||
uint32 ID;
|
||||
int32 ManaCostPerLevel;
|
||||
int32 ManaCostPerSecond;
|
||||
uint32 ManaCostAdditional; // Spell uses [ManaCost, ManaCost+ManaCostAdditional] power - affects tooltip parsing as multiplier on SpellEffectEntry::EffectPointsPerResource
|
||||
int32 ManaCostAdditional; // Spell uses [ManaCost, ManaCost+ManaCostAdditional] power - affects tooltip parsing as multiplier on SpellEffectEntry::EffectPointsPerResource
|
||||
// only SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL, SPELL_EFFECT_WEAPON_PERCENT_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE, SPELL_EFFECT_NORMALIZED_WEAPON_DMG
|
||||
uint32 PowerDisplayID;
|
||||
uint32 UnitPowerBarID;
|
||||
|
||||
Reference in New Issue
Block a user