mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Unit: Change aura proc pair container to vector
This commit is contained in:
@@ -10927,7 +10927,7 @@ void Unit::GetProcAurasTriggeredOnEvent(AuraApplicationProcContainer& aurasTrigg
|
||||
if (uint8 procEffectMask = aurApp->GetBase()->IsProcTriggeredOnEvent(aurApp, eventInfo, now))
|
||||
{
|
||||
aurApp->GetBase()->PrepareProcToTrigger(aurApp, eventInfo, now);
|
||||
aurasTriggeringProc.emplace_back(std::make_pair(procEffectMask, aurApp));
|
||||
aurasTriggeringProc.emplace_back(procEffectMask, aurApp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10939,7 +10939,7 @@ void Unit::GetProcAurasTriggeredOnEvent(AuraApplicationProcContainer& aurasTrigg
|
||||
if (uint8 procEffectMask = itr->second->GetBase()->IsProcTriggeredOnEvent(itr->second, eventInfo, now))
|
||||
{
|
||||
itr->second->GetBase()->PrepareProcToTrigger(itr->second, eventInfo, now);
|
||||
aurasTriggeringProc.emplace_back(std::make_pair(procEffectMask, itr->second));
|
||||
aurasTriggeringProc.emplace_back(procEffectMask, itr->second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1262,7 +1262,7 @@ class TC_GAME_API Unit : public WorldObject
|
||||
typedef std::list<AuraApplication *> AuraApplicationList;
|
||||
typedef std::array<DiminishingReturn, DIMINISHING_MAX> Diminishing;
|
||||
|
||||
typedef std::deque<std::pair<uint8 /*procEffectMask*/, AuraApplication*>> AuraApplicationProcContainer;
|
||||
typedef std::vector<std::pair<uint8 /*procEffectMask*/, AuraApplication*>> AuraApplicationProcContainer;
|
||||
|
||||
typedef std::map<uint8, AuraApplication*> VisibleAuraMap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user