Fixed some errors from analyzer

This commit is contained in:
hondacrx
2017-06-22 17:02:27 -04:00
parent 0e40e90a11
commit d538acc979
26 changed files with 38 additions and 46 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
-3
View File
@@ -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);
+2 -2
View File
@@ -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();