fix(Scripts/BlackTemple): Mother Shahraz Periodic Beams (#19525)
* init * Update boss_mother_shahraz.cpp
This commit is contained in:
parent
277b618d60
commit
fccfe51594
2 changed files with 8 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue