Skip to content

Commit

Permalink
Added SpellFamilyFlags4 - guessed
Browse files Browse the repository at this point in the history
Signed-off-by: Sovak <Sovak007@gmail.com>
  • Loading branch information
Sovak committed Nov 11, 2013
1 parent 2d4a6b1 commit 474d3f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions SpellWork/DBC/Structures/SpellClassOptionsEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ public sealed class SpellClassOptionsEntry
{
public uint Id;
public uint ModalNextSpell;
[StoragePresence(StoragePresenceOption.Include, ArraySize = 3)]
[StoragePresence(StoragePresenceOption.Include, ArraySize = 4)]
public uint[] SpellFamilyFlags;
public uint Unk;
public uint SpellFamilyName;
}
}
3 changes: 1 addition & 2 deletions SpellWork/DBC/Structures/SpellEffectEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ public sealed class SpellEffectEntry
public uint RadiusIndex;
public uint RadiusMaxIndex;
public float RealPointsPerLevel;
[StoragePresence(StoragePresenceOption.Include, ArraySize = 3)]
[StoragePresence(StoragePresenceOption.Include, ArraySize = 4)]
public uint[] SpellClassMask;
public uint UnkMopFlags2; // Mop
public uint TriggerSpell;
public uint UnkMop3; // Mop
public uint ImplicitTargetA;
Expand Down
4 changes: 2 additions & 2 deletions SpellWork/Spell/SpellInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ private void ViewSpellInfo()
_rtb.AppendFormatLine("Category = {0}, SpellIconID = {1}, activeIconID = {2}, SpellVisual = ({3},{4})",
_spell.Category, _spell.SpellIconID, _spell.ActiveIconID, _spell.SpellVisual[0], _spell.SpellVisual[1]);

_rtb.AppendFormatLine("Family {0}, flag [0] 0x{1:X8} [1] 0x{2:X8} [2] 0x{3:X8}",
(SpellFamilyNames)_spell.SpellFamilyName, _spell.SpellFamilyFlags[0], _spell.SpellFamilyFlags[1], _spell.SpellFamilyFlags[2]);
_rtb.AppendFormatLine("Family {0}, flag [0] 0x{1:X8} [1] 0x{2:X8} [2] 0x{3:X8} [3] 0x{4:X8}",
(SpellFamilyNames)_spell.SpellFamilyName, _spell.SpellFamilyFlags[0], _spell.SpellFamilyFlags[1], _spell.SpellFamilyFlags[2], _spell.SpellFamilyFlags[3]);

_rtb.AppendLine();

Expand Down
2 changes: 1 addition & 1 deletion SpellWork/Spell/SpellInfoHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public SpellInfoHelper(SpellEntry dbcData)
SpellFamilyFlags = (uint[])classOptions.SpellFamilyFlags.Clone();
}
else
SpellFamilyFlags = new uint[3];
SpellFamilyFlags = new uint[4];

// SpellTotems.dbc
var totems = dbcData.Totems;
Expand Down

0 comments on commit 474d3f5

Please sign in to comment.