diff options
| author | Shauren <shauren.trinity@gmail.com> | 2016-10-25 20:49:03 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2016-10-25 20:49:03 +0200 |
| commit | c5e491b55c3f39d8f226f46154a64ee131fd746c (patch) | |
| tree | 0f9ec7b8a423d7b2909684e9f431ab48e0602937 /src/server/game/Entities/DynamicObject | |
| parent | af25942aeca6fb1a1656756b064f7c5208b715d2 (diff) | |
Core/Entities: Updated updatefields to 7.1.0.22900
Diffstat (limited to 'src/server/game/Entities/DynamicObject')
| -rw-r--r-- | src/server/game/Entities/DynamicObject/DynamicObject.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/game/Entities/DynamicObject/DynamicObject.cpp b/src/server/game/Entities/DynamicObject/DynamicObject.cpp index 793bbcd656e..26d6ac9a67c 100644 --- a/src/server/game/Entities/DynamicObject/DynamicObject.cpp +++ b/src/server/game/Entities/DynamicObject/DynamicObject.cpp @@ -93,14 +93,11 @@ bool DynamicObject::CreateDynamicObject(ObjectGuid::LowType guidlow, Unit* caste WorldObject::_Create(ObjectGuid::Create<HighGuid::DynamicObject>(GetMapId(), spell->Id, guidlow)); SetPhaseMask(caster->GetPhaseMask(), false); - uint32 spellVisual = 0; - if (SpellXSpellVisualEntry const* visual = sSpellXSpellVisualStore.LookupEntry(spellXSpellVisualId)) - spellVisual = visual->SpellVisualID[0]; - SetEntry(spell->Id); SetObjectScale(1.0f); SetGuidValue(DYNAMICOBJECT_CASTER, caster->GetGUID()); - SetUInt32Value(DYNAMICOBJECT_BYTES, spellVisual | (type << 28)); + SetUInt32Value(DYNAMICOBJECT_TYPE, type); + SetUInt32Value(DYNAMICOBJECT_SPELL_X_SPELL_VISUAL_ID, spellXSpellVisualId); SetUInt32Value(DYNAMICOBJECT_SPELLID, spell->Id); SetFloatValue(DYNAMICOBJECT_RADIUS, radius); SetUInt32Value(DYNAMICOBJECT_CASTTIME, getMSTime()); |
