Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo *GetSpellProto is now GetSpellInfo *SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].* *sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo() *SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff() *SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class. *GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections *code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
This commit is contained in:
1 parent
29c228a801
commit
b0fe236265
195 files changed
+4630
-6929
No files matched your search
@@ -83,7 +83,7 @@ public:
|
||||
me->setDeathState(DEAD);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* pCaster, const SpellEntry* pSpell)
|
||||
void SpellHit(Unit* pCaster, const SpellInfo* pSpell)
|
||||
{
|
||||
if (pSpell->Id == SPELL_UNLOCK_SHACKLE)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
|
||||
void MoveInLineOfSight(Unit* /*who*/){}
|
||||
|
||||
void SpellHit(Unit* /*pCaster*/, const SpellEntry* pSpell)
|
||||
void SpellHit(Unit* /*pCaster*/, const SpellInfo* pSpell)
|
||||
{
|
||||
if (pSpell->Id == SPELL_FREE_RAGECLAW)
|
||||
{
|
||||
@@ -1043,14 +1043,14 @@ public:
|
||||
uint32 uiElementalSpellTimer;
|
||||
|
||||
uint8 uiBossRandom;
|
||||
uint32 uiSpellEntry;
|
||||
uint32 uiSpellInfo;
|
||||
|
||||
bool bAddAttack;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
uiBossRandom = 0;
|
||||
uiSpellEntry = 0;
|
||||
uiSpellInfo = 0;
|
||||
uiElementalSpellTimer = urand(5000, 8000);
|
||||
|
||||
bAddAttack = false;
|
||||
|
||||
Reference in new issue
Block a user