Core/DB2: Fix loading db2, hotfix db has one record with -1 for procCharges
This commit is contained in:
@@ -172,7 +172,7 @@ namespace Game.DataStorage
|
||||
public ushort CumulativeAura;
|
||||
public uint ProcCategoryRecovery;
|
||||
public byte ProcChance;
|
||||
public uint ProcCharges;
|
||||
public int ProcCharges;
|
||||
public ushort SpellProcsPerMinuteID;
|
||||
public int[] ProcTypeMask = new int[2];
|
||||
public uint SpellID;
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace Game.Spells
|
||||
SpellProcsPerMinuteRecord _ppm = CliDB.SpellProcsPerMinuteStorage.LookupByKey(_options.SpellProcsPerMinuteID);
|
||||
ProcFlags = (ProcFlags)_options.ProcTypeMask[0];
|
||||
ProcChance = _options.ProcChance;
|
||||
ProcCharges = _options.ProcCharges;
|
||||
ProcCharges = (uint)_options.ProcCharges;
|
||||
ProcCooldown = _options.ProcCategoryRecovery;
|
||||
ProcBasePPM = _ppm != null ? _ppm.BaseProcRate : 0.0f;
|
||||
ProcPPMMods = Global.DB2Mgr.GetSpellProcsPerMinuteMods(_options.SpellProcsPerMinuteID);
|
||||
|
||||
Reference in New Issue
Block a user