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 off4f7e6324dCo-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 commitf0b629a283, reversing changes made toc06f4465d1. * Revert "Revert "Merge branch 'master' into fix-visual"" This reverts commitbfdf75bd6f. * 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