mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Add quest rewards to gear initialization
This commit is contained in:
@@ -89,13 +89,21 @@ void StatsCollector::CollectSpellStats(uint32 spellId, float multiplier, int32 s
|
||||
bool canNextTrigger = true;
|
||||
|
||||
uint32 procFlags;
|
||||
uint32 procChance;
|
||||
if (eventEntry && eventEntry->procFlags)
|
||||
procFlags = eventEntry->procFlags;
|
||||
else
|
||||
procFlags = spellInfo->ProcFlags;
|
||||
|
||||
if (procFlags && !CanBeTriggeredByType(spellInfo, procFlags))
|
||||
|
||||
if (eventEntry && eventEntry->customChance)
|
||||
procChance = eventEntry->customChance;
|
||||
else
|
||||
procChance = spellInfo->ProcChance;
|
||||
bool lowChance = procChance <= 5;
|
||||
|
||||
if (lowChance || (procFlags && !CanBeTriggeredByType(spellInfo, procFlags)))
|
||||
canNextTrigger = false;
|
||||
|
||||
if (spellInfo->StackAmount)
|
||||
{
|
||||
// Heuristic multiplier for spell with stackAmount since high stackAmount may not be available
|
||||
|
||||
Reference in New Issue
Block a user