Fixed world login

This commit is contained in:
Hondacrx
2025-08-26 22:37:42 -04:00
parent 7bb4769eee
commit ec4f2a49d4
20 changed files with 80 additions and 74 deletions
+2 -2
View File
@@ -863,7 +863,7 @@ namespace Game.Spells
Unit caster = GetCaster();
foreach (AuraEffect aurEff in GetAuraEffects())
aurEff.CalculatePeriodic(caster, resetPeriodicTimer, false);
aurEff?.CalculatePeriodic(caster, resetPeriodicTimer, false);
}
public void SetCharges(int charges)
@@ -1806,7 +1806,7 @@ namespace Game.Spells
// At least one effect has to pass checks to proc aura
uint procEffectMask = aurApp.GetEffectMask();
foreach (AuraEffect aurEff in GetAuraEffects())
if ((procEffectMask & (1u << (int)aurEff.GetEffIndex())) != 0)
if (aurEff != null && (procEffectMask & (1u << (int)aurEff.GetEffIndex())) != 0)
if ((procEntry.DisableEffectsMask & (1u << (int)aurEff.GetEffIndex())) != 0 || !GetEffect(aurEff.GetEffIndex()).CheckEffectProc(aurApp, eventInfo))
procEffectMask &= ~(1u << (int)aurEff.GetEffIndex());