Core/Spells: Implemented SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED

This commit is contained in:
Shauren authored and Ovahlord committed 2022-09-30 02:08:33 +02:00
1 parent 8fa4b57925
commit 4cfd439d34
4 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -21358,7 +21358,7 @@ void Player::VehicleSpellInitialize()
{
uint32 spellId = vehicle->m_spells[i];
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
if (!spellInfo)
if (!spellInfo || !spellInfo->HasAttribute(SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED))
{
data << uint16(0) << uint8(0) << uint8(i+8);
continue;