mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[9789] Implement spell selection, for creatures in instances, based on map difficulty
This commit is contained in:
parent
6ad2d18f1a
commit
51546e1ff9
10 changed files with 45 additions and 10 deletions
|
|
@ -1469,7 +1469,7 @@ struct SpellEntry
|
|||
//uint32 PowerDisplayId; // 228 PowerDisplay.dbc, new in 3.1
|
||||
//float unk_320_4[3]; // 229-231 3.2.0
|
||||
//uint32 spellDescriptionVariableID; // 232 3.2.0
|
||||
//uint32 SpellDifficultyId; // 233 3.3.0
|
||||
uint32 SpellDifficultyId; // 233 m_spellDifficultyID - id from SpellDifficulty.dbc
|
||||
|
||||
// helpers
|
||||
int32 CalculateSimpleValue(SpellEffectIndex eff) const { return EffectBasePoints[eff] + int32(1); }
|
||||
|
|
@ -1546,6 +1546,12 @@ struct SpellShapeshiftEntry
|
|||
uint32 spellId[8]; // 27-34 spells which appear in the bar after shapeshifting
|
||||
};
|
||||
|
||||
struct SpellDifficultyEntry
|
||||
{
|
||||
uint32 ID; // 0 m_ID
|
||||
uint32 spellId[MAX_DIFFICULTY]; // 1-4 m_spellId[4]
|
||||
};
|
||||
|
||||
struct SpellDurationEntry
|
||||
{
|
||||
uint32 ID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue