Fixed some errors from analyzer
This commit is contained in:
@@ -705,7 +705,7 @@ namespace Game.Entities
|
||||
|
||||
public void SetState(ItemUpdateState state, Player forplayer = null)
|
||||
{
|
||||
if (uState == ItemUpdateState.New && uState == ItemUpdateState.Removed)
|
||||
if (uState == ItemUpdateState.New && state == ItemUpdateState.Removed)
|
||||
{
|
||||
// pretend the item never existed
|
||||
if (forplayer)
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace Game.Entities
|
||||
|
||||
float avgDamage = dps * GetDelay() * 0.001f;
|
||||
minDamage = (GetStatScalingFactor() * -0.5f + 1.0f) * avgDamage;
|
||||
maxDamage = (float)Math.Floor((avgDamage * (GetStatScalingFactor() * 0.5f + 1.0f) + 0.5f));
|
||||
maxDamage = (float)Math.Floor(avgDamage * (GetStatScalingFactor() * 0.5f + 1.0f) + 0.5f);
|
||||
}
|
||||
|
||||
public bool IsUsableByLootSpecialization(Player player)
|
||||
|
||||
@@ -164,9 +164,6 @@ namespace Game.Entities
|
||||
if (eventList.Empty())
|
||||
return;
|
||||
|
||||
if (eventList.Empty())
|
||||
return;
|
||||
|
||||
foreach (uint questId in eventList)
|
||||
{
|
||||
uint questBit = Global.DB2Mgr.GetQuestUniqueBitFlag(questId);
|
||||
|
||||
@@ -1836,7 +1836,7 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
if (!IsTriggeredAtSpellProcEvent(target, triggerData.aura, procSpell, procFlag, procExtra, attType, isVictim, active, triggerData.spellProcEvent))
|
||||
if (!IsTriggeredAtSpellProcEvent(target, triggerData.aura, procSpell, procFlag, procExtra, attType, isVictim, active, ref triggerData.spellProcEvent))
|
||||
continue;
|
||||
|
||||
// do checks using conditions table
|
||||
@@ -2415,7 +2415,7 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
bool IsTriggeredAtSpellProcEvent(Unit victim, Aura aura, SpellInfo procSpell, ProcFlags procFlag, ProcFlagsExLegacy procExtra, WeaponAttackType attType, bool isVictim, bool active, SpellProcEventEntry spellProcEvent)
|
||||
bool IsTriggeredAtSpellProcEvent(Unit victim, Aura aura, SpellInfo procSpell, ProcFlags procFlag, ProcFlagsExLegacy procExtra, WeaponAttackType attType, bool isVictim, bool active, ref SpellProcEventEntry spellProcEvent)
|
||||
{
|
||||
SpellInfo spellInfo = aura.GetSpellInfo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user