aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2017-07-27 22:46:13 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-07-27 22:46:13 +0200
commit0c95c149385d19beecc34a365ba50a623e43372f (patch)
tree09b59f69d8f5e3a14af75428abe9ac0c2b7cd18e /src
parent7c39123432c969173b168613d73b762eac67a303 (diff)
Core/DataStores: Fixed SpellPowerEntry structure
* ManaCosts are signed
Diffstat (limited to 'src')
-rw-r--r--src/server/game/DataStores/DB2LoadInfo.h4
-rw-r--r--src/server/game/DataStores/DB2Structure.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/DataStores/DB2LoadInfo.h b/src/server/game/DataStores/DB2LoadInfo.h
index 4610f92f7f9..7522e8e9295 100644
--- a/src/server/game/DataStores/DB2LoadInfo.h
+++ b/src/server/game/DataStores/DB2LoadInfo.h
@@ -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" },
};
diff --git a/src/server/game/DataStores/DB2Structure.h b/src/server/game/DataStores/DB2Structure.h
index 08b42d3bfca..ebd3b27c852 100644
--- a/src/server/game/DataStores/DB2Structure.h
+++ b/src/server/game/DataStores/DB2Structure.h
@@ -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;