All pastes #795038 Raw Edit

Anonymous

public cpp v1 · immutable
#795038 ·published 2007-11-23 17:03 UTC
rendered paste body
void Spell::EffectPersistentAA(uint32 i){    float radius = GetRadius(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[i]));    if(Player* modOwner = m_caster->GetSpellModOwner())        modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_RADIUS, radius);    int32 duration = GetDuration(m_spellInfo);    DynamicObject* dynObj = new DynamicObject(m_caster);    if(!dynObj->Create(objmgr.GenerateLowGuid(HIGHGUID_DYNAMICOBJECT), m_caster, m_spellInfo->Id, i, m_targets.m_destX, m_targets.m_destY, m_targets.m_destZ, duration, radius))    {        delete dynObj;        return;    }    dynObj->SetUInt32Value(OBJECT_FIELD_TYPE, 65);    dynObj->SetUInt32Value(GAMEOBJECT_DISPLAYID, 368003);    dynObj->SetUInt32Value(DYNAMICOBJECT_BYTES, 0x01eeeeee);    m_caster->AddDynObject(dynObj);    MapManager::Instance().GetMap(dynObj->GetMapId(), dynObj)->Add(dynObj);}