fix(Scripts/Raids): some corrections to Broodlord Supression Room: (#10834)

Supression traps should always hit players.
Supression traps should not be disarmed after Broodlord defeat.
Supression traps should be visible after disarm.
Fixes #10768
This commit is contained in:
UltraNix
2022-03-03 11:29:31 +01:00
committed by GitHub
parent d682398942
commit e4d3f57d7c
3 changed files with 11 additions and 20 deletions

View File

@@ -2138,8 +2138,10 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
else if (m_spellInfo->Id == 1842 && gameObjTarget->GetGOInfo()->type == GAMEOBJECT_TYPE_TRAP)
{
gameObjTarget->SetLootState(GO_JUST_DEACTIVATED);
if (!gameObjTarget->GetOwner()) // pussywizard
if (gameObjTarget->getLootState() == GO_JUST_DEACTIVATED && !gameObjTarget->GetOwner()) // pussywizard
{
gameObjTarget->SetRespawnTime(gameObjTarget->GetGOInfo()->GetAutoCloseTime() / IN_MILLISECONDS/*xinef*/);
}
return;
}
// TODO: Add script for spell 41920 - Filling, becouse server it freze when use this spell

View File

@@ -4204,6 +4204,12 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->AttributesEx |= SPELL_ATTR1_EXCLUDE_CASTER;
});
// Suppression Aura
ApplySpellFix({ 22247 }, [](SpellInfo* spellInfo)
{
spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];