mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10484] Use for auraholde/aura GetStackAmount uint32 result.
uint32 result used in most expressions for stack calculation/compare Alos uint8implicitly casted to int by C++ in expressions that generate unexpected signed/unsigned warnings in comparisons (uint8 +1) > uint32 and similar.
This commit is contained in:
parent
a3e62d43b0
commit
f0956e258c
5 changed files with 14 additions and 14 deletions
|
|
@ -1691,7 +1691,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
|
||||
if (Aura* pAura = m_caster->GetAura(spellShrink, EFFECT_INDEX_0))
|
||||
{
|
||||
uint8 stackNum = pAura->GetStackAmount();
|
||||
uint32 stackNum = pAura->GetStackAmount();
|
||||
|
||||
// chance to become pygmified (5, 10, 15 etc)
|
||||
if (roll_chance_i(stackNum*5))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue