Fix Auth on server also some fixes and cleanups. Big thx to TOM_RUS.
--HG-- branch : trunk
This commit is contained in:
1 parent
36e13c1d1c
commit
8db7c06e6b
19 files changed
+104
-55
No files matched your search
+4
-4
@@ -12240,14 +12240,14 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, uint8 effect_inde
|
||||
level -= int32(spellProto->spellLevel);
|
||||
|
||||
float basePointsPerLevel = spellProto->EffectRealPointsPerLevel[effect_index];
|
||||
float randomPointsPerLevel = spellProto->EffectDicePerLevel[effect_index];
|
||||
float randomPointsPerLevel = 1;
|
||||
int32 basePoints = int32(effBasePoints + level * basePointsPerLevel);
|
||||
int32 randomPoints = int32(spellProto->EffectDieSides[effect_index] + level * randomPointsPerLevel);
|
||||
|
||||
// range can have possitive and negative values, so order its for irand
|
||||
int32 randvalue = int32(spellProto->EffectBaseDice[effect_index]) >= randomPoints
|
||||
? irand(randomPoints, int32(spellProto->EffectBaseDice[effect_index]))
|
||||
: irand(int32(spellProto->EffectBaseDice[effect_index]), randomPoints);
|
||||
int32 randvalue = int32(1) >= randomPoints
|
||||
? irand(randomPoints, int32(1))
|
||||
: irand(int32(1), randomPoints);
|
||||
|
||||
int32 value = basePoints + randvalue;
|
||||
//random damage
|
||||
|
||||
Reference in new issue
Block a user