Core/Misc: Fix compiler warnings
This commit is contained in:
1 parent
19accfc3ee
commit
cc14e18664
3 files changed
+18
-16
No files matched your search
@@ -15009,13 +15009,13 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit* victim, Aura* aura, SpellInfo const
|
||||
{
|
||||
if (!isVictim)
|
||||
{
|
||||
uint32 WeaponSpeed = GetAttackTime(attType);
|
||||
chance = GetPPMProcChance(WeaponSpeed, spellProcEvent->ppmRate, spellProto);
|
||||
uint32 weaponSpeed = GetAttackTime(attType);
|
||||
chance = GetPPMProcChance(weaponSpeed, spellProcEvent->ppmRate, spellProto);
|
||||
}
|
||||
else
|
||||
else if (victim)
|
||||
{
|
||||
uint32 WeaponSpeed = victim->GetAttackTime(attType);
|
||||
chance = victim->GetPPMProcChance(WeaponSpeed, spellProcEvent->ppmRate, spellProto);
|
||||
uint32 weaponSpeed = victim->GetAttackTime(attType);
|
||||
chance = victim->GetPPMProcChance(weaponSpeed, spellProcEvent->ppmRate, spellProto);
|
||||
}
|
||||
}
|
||||
// Apply chance modifer aura
|
||||
|
||||
Reference in new issue
Block a user