fix(Core/Spell): Remove ErrorCube visual (#5713)
* fix(Core/Spell): Remove ErrorCube visual * cherry-pick https://github.com/trinitycore/trinitycore/commit/3b5014fdae * cherry-pick small part of https://github.com/TrinityCore/TrinityCore/commit/f4f7e6324d6c99335bf3479f212edea1e5572f88 Co-Authored-By: Shauren <shauren.trinity@gmail.com> Co-Authored-By: Treeston <14020072+treeston@users.noreply.github.com> * brackets * Update rev_1620443413425226200.sql * Update rev_1620443413425226200.sql * It was the S, AN S * Update SpellMgr.cpp * Update SpellMgr.cpp * Revert "Merge branch 'master' into fix-visual" This reverts commit f0b629a2835c2a2d9aa5696bb7539c1ae9b14d57, reversing changes made to c06f4465d15e9f71426d796e2fcfe714592c3443. * Revert "Revert "Merge branch 'master' into fix-visual"" This reverts commit bfdf75bd6f8f06944463249de5d398a9e77c3a79. * fix build Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Treeston <14020072+treeston@users.noreply.github.com>
This commit is contained in:
@@ -3280,6 +3280,20 @@ void SpellMgr::LoadSpellCustomAttr()
|
||||
spellInfo->Effects[EFFECT_0].MiscValue = 127;
|
||||
break;
|
||||
}
|
||||
|
||||
if (spellInfo->Speed > 0.0f)
|
||||
{
|
||||
if (SpellVisualEntry const* spellVisual = sSpellVisualStore.LookupEntry(spellInfo->SpellVisual[0]))
|
||||
{
|
||||
if (spellVisual->HasMissile)
|
||||
{
|
||||
if (spellVisual->MissileModel == -4 || spellVisual->MissileModel == -5)
|
||||
{
|
||||
spellInfo->AttributesCu |= SPELL_ATTR0_CU_NEEDS_AMMO_DATA;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
spellInfo->_InitializeExplicitTargetMask();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user