mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Fixed few typos.
This commit is contained in:
parent
4e2c42799c
commit
05f42d995f
3 changed files with 4 additions and 4 deletions
|
|
@ -11308,8 +11308,6 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, SpellEffectIndex
|
||||||
int32 randomPoints = int32(spellProto->EffectDieSides[effect_index]);
|
int32 randomPoints = int32(spellProto->EffectDieSides[effect_index]);
|
||||||
float comboDamage = spellProto->EffectPointsPerComboPoint[effect_index];
|
float comboDamage = spellProto->EffectPointsPerComboPoint[effect_index];
|
||||||
|
|
||||||
int32 value = basePoints;
|
|
||||||
|
|
||||||
if(randomPoints != 0)
|
if(randomPoints != 0)
|
||||||
{
|
{
|
||||||
// range can have positive and negative values, so order its for irand
|
// range can have positive and negative values, so order its for irand
|
||||||
|
|
@ -11320,6 +11318,8 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, SpellEffectIndex
|
||||||
basePoints += randvalue;
|
basePoints += randvalue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32 value = basePoints;
|
||||||
|
|
||||||
// random damage
|
// random damage
|
||||||
if(comboDamage != 0 && unitPlayer && target && (target->GetGUID() == unitPlayer->GetComboTarget()))
|
if(comboDamage != 0 && unitPlayer && target && (target->GetGUID() == unitPlayer->GetComboTarget()))
|
||||||
value += (int32)(comboDamage * comboPoints);
|
value += (int32)(comboDamage * comboPoints);
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,8 @@ void BigNumber::SetQword(uint64 val)
|
||||||
void BigNumber::SetBinary(const uint8 *bytes, int len)
|
void BigNumber::SetBinary(const uint8 *bytes, int len)
|
||||||
{
|
{
|
||||||
uint8 t[1000];
|
uint8 t[1000];
|
||||||
for (int i = 0; i < len; i++) t[i] = bytes[len - 1 - i];
|
for (int i = 0; i < len; i++)
|
||||||
|
t[i] = bytes[len - 1 - i];
|
||||||
BN_bin2bn(t, len, _bn);
|
BN_bin2bn(t, len, _bn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ class Sha1Hash
|
||||||
Sha1Hash();
|
Sha1Hash();
|
||||||
~Sha1Hash();
|
~Sha1Hash();
|
||||||
|
|
||||||
void UpdateFinalizeBigNumbers(BigNumber *bn0, ...);
|
|
||||||
void UpdateBigNumbers(BigNumber *bn0, ...);
|
void UpdateBigNumbers(BigNumber *bn0, ...);
|
||||||
|
|
||||||
void UpdateData(const uint8 *dta, int len);
|
void UpdateData(const uint8 *dta, int len);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue