fix(Scripts/BlackTemple): Mother Shahraz Periodic Beams (#19525)

* init

* Update boss_mother_shahraz.cpp
This commit is contained in:
Gultask
2024-07-29 23:49:58 -03:00
committed by GitHub
parent 277b618d60
commit fccfe51594
2 changed files with 8 additions and 2 deletions

View File

@@ -4792,6 +4792,12 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->Effects[EFFECT_0].RadiusEntry = sSpellRadiusStore.LookupEntry(EFFECT_RADIUS_20_YARDS);
});
// Random Periodic
ApplySpellFix({ 40867 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_0].Amplitude = 9000;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];

View File

@@ -145,10 +145,10 @@ class spell_mother_shahraz_random_periodic_aura : public AuraScript
return ValidateSpellInfo({ SPELL_SINFUL_PERIODIC, SPELL_SINISTER_PERIODIC, SPELL_VILE_PERIODIC, SPELL_WICKED_PERIODIC });
}
void Update(AuraEffect const* effect)
void Update(AuraEffect const* /*effect*/)
{
PreventDefaultAction();
if (effect->GetTickNumber() % 5 == 1)
if (GetUnitOwner())
GetUnitOwner()->CastSpell(GetUnitOwner(), RAND(SPELL_SINFUL_PERIODIC, SPELL_SINISTER_PERIODIC, SPELL_VILE_PERIODIC, SPELL_WICKED_PERIODIC), true);
}