mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10116] Remove some wrongly initialized fields for dynamic object.
This will correct visual appearance of spells like for example id 26573. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
1713caae17
commit
b8540cf04d
3 changed files with 10 additions and 10 deletions
|
|
@ -3446,9 +3446,7 @@ void Spell::EffectPersistentAA(SpellEffectIndex eff_idx)
|
|||
delete dynObj;
|
||||
return;
|
||||
}
|
||||
dynObj->SetUInt32Value(OBJECT_FIELD_TYPE, 65);
|
||||
dynObj->SetUInt32Value(GAMEOBJECT_DISPLAYID, 368003);
|
||||
dynObj->SetUInt32Value(DYNAMICOBJECT_BYTES, 0x01eeeeee);
|
||||
|
||||
m_caster->AddDynObject(dynObj);
|
||||
m_caster->GetMap()->Add(dynObj);
|
||||
}
|
||||
|
|
@ -4240,8 +4238,10 @@ void Spell::EffectAddFarsight(SpellEffectIndex eff_idx)
|
|||
delete dynObj;
|
||||
return;
|
||||
}
|
||||
dynObj->SetUInt32Value(OBJECT_FIELD_TYPE, 65);
|
||||
|
||||
// DYNAMICOBJECT_BYTES is appareltly different from the default bytes set in ::Create
|
||||
dynObj->SetUInt32Value(DYNAMICOBJECT_BYTES, 0x80000002);
|
||||
|
||||
m_caster->AddDynObject(dynObj);
|
||||
m_caster->GetMap()->Add(dynObj);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue