Make battleground join / arena join / loot money session packet (#1178)

* Make battleground / arena join session packet

* Loot money

* Avoid aoe crash
This commit is contained in:
Yunfan Li
2025-04-08 10:11:03 +08:00
committed by GitHub
parent 2fced71069
commit 2f3f8d565c
3 changed files with 18 additions and 9 deletions

View File

@@ -135,7 +135,11 @@ Aura* AreaDebuffValue::Calculate()
for (auto i = list.begin(); i != list.end(); ++i)
{
AuraEffect* aurEff = *i;
if (!aurEff)
continue;
Aura* aura = aurEff->GetBase();
if (!aura)
continue;
AuraObjectType type = aura->GetType();
bool isPositive = aura->GetSpellInfo()->IsPositive();
if (type == DYNOBJ_AURA_TYPE && !isPositive)