Core/Auras: Small correction on PLAYER_FIELD_BYTES2 usage in SPELL_AURA_OVERRIDE_SPELLS (293)

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-12-05 21:20:45 +01:00
parent 7db1b39224
commit e2c9453442
@@ -6493,7 +6493,7 @@ void AuraEffect::HandleAuraOverrideSpells(AuraApplication const * aurApp, uint8
if (apply) if (apply)
{ {
target->SetUInt32Value(PLAYER_FIELD_BYTES2, overrideId); target->SetUInt16Value(PLAYER_FIELD_BYTES2, 0, overrideId);
if (OverrideSpellDataEntry const* overrideSpells = sOverrideSpellDataStore.LookupEntry(overrideId)) if (OverrideSpellDataEntry const* overrideSpells = sOverrideSpellDataStore.LookupEntry(overrideId))
for (uint8 i = 0; i < MAX_OVERRIDE_SPELL; ++i) for (uint8 i = 0; i < MAX_OVERRIDE_SPELL; ++i)
if (uint32 spellId = overrideSpells->spellId[i]) if (uint32 spellId = overrideSpells->spellId[i])
@@ -6501,7 +6501,7 @@ void AuraEffect::HandleAuraOverrideSpells(AuraApplication const * aurApp, uint8
} }
else else
{ {
target->SetUInt32Value(PLAYER_FIELD_BYTES2, 0); target->SetUInt16Value(PLAYER_FIELD_BYTES2, 0, 0);
if (OverrideSpellDataEntry const* overrideSpells = sOverrideSpellDataStore.LookupEntry(overrideId)) if (OverrideSpellDataEntry const* overrideSpells = sOverrideSpellDataStore.LookupEntry(overrideId))
for (uint8 i = 0; i < MAX_OVERRIDE_SPELL; ++i) for (uint8 i = 0; i < MAX_OVERRIDE_SPELL; ++i)
if (uint32 spellId = overrideSpells->spellId[i]) if (uint32 spellId = overrideSpells->spellId[i])