diff options
author | Xanadu <none@none> | 2010-02-05 13:01:32 +0100 |
---|---|---|
committer | Xanadu <none@none> | 2010-02-05 13:01:32 +0100 |
commit | f8d1920fa591d2aba16bf70023c64f4379c0114d (patch) | |
tree | 2c62d72bd6d0941e1969e8820b890ee5a43a827e /src/game/SpellAuras.cpp | |
parent | a5d1bc77abc275402240bec1380fa87f04461ba8 (diff) |
Yet more cleanup, mostly in the script system. This should conclude the script integration into core.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 9ced669238d..3ca24609a3e 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -206,38 +206,6 @@ void AuraApplication::ClientUpdate(bool remove) m_target->SendMessageToSet(&data, true); } -void AuraApplication::ConstructAuraInfo(ByteBuffer &data) -{ - m_needClientUpdate = false; - - data << uint8(m_slot); - - if(!m_target->GetVisibleAura(m_slot)) - { - data << uint32(0); - sLog.outDebug("Aura %u removed slot %u",GetBase()->GetId(), m_slot); - return; - } - - Aura const * aura = GetBase(); - data << uint32(aura->GetId()); - uint32 flags = m_flags; - if (aura->GetMaxDuration() > 0) - flags |= AFLAG_DURATION; - data << uint8(flags); - data << uint8(aura->GetCasterLevel()); - data << uint8(aura->GetStackAmount() > 1 ? aura->GetStackAmount() : (aura->GetCharges()) ? aura->GetCharges() : 1); - - if(!(flags & AFLAG_CASTER)) - data.appendPackGUID(aura->GetCasterGUID()); - - if(flags & AFLAG_DURATION) - { - data << uint32(aura->GetMaxDuration()); - data << uint32(aura->GetDuration()); - } -} - Aura * Aura::TryCreate(SpellEntry const* spellproto, uint8 tryEffMask, WorldObject * owner, Unit * caster, int32 *baseAmount, Item * castItem, uint64 casterGUID) { assert(spellproto); |