DB/SpellRange: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
Line 28: Line 28:
| 5  || maxRangeFriend || Float ||
| 5  || maxRangeFriend || Float ||
|-  
|-  
| 6  || Flags || Integer || 1 = Combat range, 2 = Ranged spell
| 6  || Flags || Integer || 1 = Combat range, 2 = Long range spell
|- style="background:#E0E0E0;"
|- style="background:#E0E0E0;"
| 7 - 23  || Description (+[[Localization]]) || Integer || Long name / description
| 7 - 23  || Description (+[[Localization]]) || Integer || Long name / description
Line 40: Line 40:
   float m_rangeMin[2];
   float m_rangeMin[2];
   float m_rangeMax[2];
   float m_rangeMax[2];
   uint32_t m_flags;        // &1: Combat range, &2: Ranged player spells i.e. aimed shot, fireball
   uint32_t m_flags;        // &1: Combat range, &2: Long range player spells i.e. aimed shot, fireball
   {{Template:Type|langstringref}} m_displayName_lang;
   {{Template:Type|langstringref}} m_displayName_lang;
   {{Template:Type|langstringref}} m_displayNameShort_lang;
   {{Template:Type|langstringref}} m_displayNameShort_lang;

Revision as of 14:30, 9 October 2017

0.5.3.3368 - 2.4.3.8606

struct SpellRangeRec {
  uint32_t m_ID;
  float m_rangeMin;
  float m_rangeMax;
  uint32_t m_flags;        // &:1 - Use combat reach range Spell_C_GetMinMaxRange
  langstringref m_displayName_lang;
  langstringref m_displayNameShort_lang;
};

3.3.5.12340 - 6.0.1.18179

Column Field Type Notes
1 ID Integer
2 minRangeHostile Float
3 minRangeFriend Float
4 maxRangeHostile Float
5 maxRangeFriend Float
6 Flags Integer 1 = Combat range, 2 = Long range spell
7 - 23 Description (+Localization) Integer Long name / description
24 - 40 Short Name (+Localization) Integer Sort of an identification ?

Struct

struct SpellRangeRec {
  uint32_t m_ID;
  float m_rangeMin[2];
  float m_rangeMax[2];
  uint32_t m_flags;         // &1: Combat range, &2: Long range player spells i.e. aimed shot, fireball
  langstringref m_displayName_lang;
  langstringref m_displayNameShort_lang;
};