mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Modify OnPeriodic for 10-man heroic difficulty (#824)
Adjust the OnPeriodic method to set a blizzlike amount for the aura effect based on the raid difficulty (40 man).
This commit is contained in:
@@ -347,6 +347,11 @@ public:
|
|||||||
|
|
||||||
void OnPeriodic(AuraEffect const* aurEff)
|
void OnPeriodic(AuraEffect const* aurEff)
|
||||||
{
|
{
|
||||||
|
if (GetCaster()->GetMap()->GetDifficulty() == RAID_DIFFICULTY_10MAN_HEROIC)
|
||||||
|
{
|
||||||
|
AuraEffect* eff = const_cast<AuraEffect*>(aurEff);
|
||||||
|
eff->SetAmount(static_cast<int32>(urand(657, 843)));
|
||||||
|
}
|
||||||
if (aurEff->GetTickNumber() == 2)
|
if (aurEff->GetTickNumber() == 2)
|
||||||
{
|
{
|
||||||
if (GetCaster()->GetMap()->GetDifficulty() == RAID_DIFFICULTY_10MAN_HEROIC)
|
if (GetCaster()->GetMap()->GetDifficulty() == RAID_DIFFICULTY_10MAN_HEROIC)
|
||||||
|
|||||||
Reference in New Issue
Block a user