mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10121] Add a few comments about DYNAMICOBJECT_BYTES + fix typo in one.
This commit is contained in:
parent
fdcbd7d5f5
commit
4024a1c50c
3 changed files with 15 additions and 2 deletions
|
|
@ -74,7 +74,20 @@ bool DynamicObject::Create( uint32 guidlow, Unit *caster, uint32 spellId, SpellE
|
|||
SetObjectScale(DEFAULT_OBJECT_SCALE);
|
||||
|
||||
SetUInt64Value(DYNAMICOBJECT_CASTER, caster->GetGUID());
|
||||
|
||||
/* Bytes field, so it's really 4 bit fields. These flags are unknown, but we do know that 0x00000001 is set for most.
|
||||
Farsight for example, does not have this flag, instead it has 0x80000002.
|
||||
Flags are set dynamically with some conditions, so one spell may have different flags set, depending on those conditions.
|
||||
The size of the visual may be controlled to some degree with these flags.
|
||||
|
||||
uint32 bytes = 0x00000000;
|
||||
bytes |= 0x01;
|
||||
bytes |= 0x00 << 8;
|
||||
bytes |= 0x00 << 16;
|
||||
bytes |= 0x00 << 24;
|
||||
*/
|
||||
SetUInt32Value(DYNAMICOBJECT_BYTES, 0x00000001);
|
||||
|
||||
SetUInt32Value(DYNAMICOBJECT_SPELLID, spellId);
|
||||
SetFloatValue(DYNAMICOBJECT_RADIUS, radius);
|
||||
SetUInt32Value(DYNAMICOBJECT_CASTTIME, getMSTime()); // new 2.4.0
|
||||
|
|
|
|||
|
|
@ -4239,7 +4239,7 @@ void Spell::EffectAddFarsight(SpellEffectIndex eff_idx)
|
|||
return;
|
||||
}
|
||||
|
||||
// DYNAMICOBJECT_BYTES is appareltly different from the default bytes set in ::Create
|
||||
// DYNAMICOBJECT_BYTES is apparently different from the default bytes set in ::Create
|
||||
dynObj->SetUInt32Value(DYNAMICOBJECT_BYTES, 0x80000002);
|
||||
|
||||
m_caster->AddDynObject(dynObj);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10120"
|
||||
#define REVISION_NR "10121"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue