mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[9324] Fix some gcc warnings
This commit is contained in:
parent
2a01c79609
commit
4338c9105d
27 changed files with 102 additions and 103 deletions
|
|
@ -1300,7 +1300,7 @@ bool Aura::modStackAmount(int32 num)
|
|||
|
||||
// Modify stack but limit it
|
||||
int32 stackAmount = m_stackAmount + num;
|
||||
if (stackAmount > m_spellProto->StackAmount)
|
||||
if (stackAmount > (int32)m_spellProto->StackAmount)
|
||||
stackAmount = m_spellProto->StackAmount;
|
||||
else if (stackAmount <=0) // Last aura from stack removed
|
||||
{
|
||||
|
|
@ -2359,7 +2359,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
SpellEntry const* buffEntry = sSpellStore.LookupEntry(55166);
|
||||
if (!buffEntry)
|
||||
return;
|
||||
for(int k = 0; k < buffEntry->StackAmount; ++k)
|
||||
for(uint32 k = 0; k < buffEntry->StackAmount; ++k)
|
||||
m_target->CastSpell(m_target, buffEntry, true, NULL, this);
|
||||
}
|
||||
// Earth Shield
|
||||
|
|
@ -2526,7 +2526,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
if (!spell || !caster)
|
||||
return;
|
||||
|
||||
for (int i=0; i < spell->StackAmount; ++i)
|
||||
for (uint32 i = 0; i < spell->StackAmount; ++i)
|
||||
caster->CastSpell(m_target, spellId, true, NULL, NULL, GetCasterGUID());
|
||||
return;
|
||||
}
|
||||
|
|
@ -2543,7 +2543,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
Unit* caster = GetCaster();
|
||||
if (!spell || !caster)
|
||||
return;
|
||||
for (int i=0; i < spell->StackAmount; ++i)
|
||||
for (uint32 i=0; i < spell->StackAmount; ++i)
|
||||
caster->CastSpell(m_target, spell->Id, true, NULL, NULL, GetCasterGUID());
|
||||
return;
|
||||
}
|
||||
|
|
@ -3097,7 +3097,7 @@ void Aura::HandleAuraModShapeshift(bool apply, bool Real)
|
|||
{
|
||||
// Furor chance is now amount allowed to save energy for cat form
|
||||
// without talent it reset to 0
|
||||
if (m_target->GetPower(POWER_ENERGY) > furorChance)
|
||||
if ((int32)m_target->GetPower(POWER_ENERGY) > furorChance)
|
||||
{
|
||||
m_target->SetPower(POWER_ENERGY, 0);
|
||||
m_target->CastCustomSpell(m_target, 17099, &furorChance, NULL, NULL, this);
|
||||
|
|
@ -3106,7 +3106,7 @@ void Aura::HandleAuraModShapeshift(bool apply, bool Real)
|
|||
else if(furorChance) // only if talent known
|
||||
{
|
||||
m_target->SetPower(POWER_RAGE, 0);
|
||||
if(urand(1,100) <= furorChance)
|
||||
if(irand(1,100) <= furorChance)
|
||||
m_target->CastSpell(m_target, 17057, true, NULL, this);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue