Fixed appearance validation

Implemented proper facial hair validation
Implemented transmog Set
fix interaction of spells like Shadowmeld with Threat reducing effects
This commit is contained in:
hondacrx
2017-08-24 18:01:44 -04:00
parent 7934d51702
commit 0707f9b377
71 changed files with 2968 additions and 632 deletions
+9 -2
View File
@@ -752,6 +752,13 @@ namespace Game.Entities
}
break;
}
// Spell crit suppression
if (victim.GetTypeId() == TypeId.Unit)
{
int levelDiff = (int)(victim.GetLevelForTarget(this) - getLevel());
crit_chance -= levelDiff * 1.0f;
}
}
break;
}
@@ -776,7 +783,7 @@ namespace Game.Entities
if (aurEff.GetCasterGUID() == GetGUID() && aurEff.IsAffectingSpell(spellProto))
crit_chance += aurEff.GetAmount();
return crit_chance > 0.0f ? crit_chance : 0.0f;
return Math.Max(crit_chance, 0.0f);
}
// Calculate spell hit result can be:
@@ -1813,7 +1820,7 @@ namespace Game.Entities
DateTime now = DateTime.Now;
// use provided list of auras which can proc
if (!procAuras.Empty())
if (procAuras != null)
{
foreach (AuraApplication aurApp in procAuras)
{