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:
QAston
2011-07-26 23:09:28 +02:00
parent 29c228a801
commit b0fe236265
195 changed files with 4630 additions and 6929 deletions
@@ -105,7 +105,7 @@ class boss_faerlina : public CreatureScript
DoScriptText(SAY_DEATH, me);
}
void SpellHit(Unit* caster, SpellEntry const* spell)
void SpellHit(Unit* caster, SpellInfo const* spell)
{
if (spell->Id == SPELL_WIDOWS_EMBRACE || spell->Id == H_SPELL_WIDOWS_EMBRACE)
{
@@ -343,7 +343,7 @@ class boss_gothik : public CreatureScript
return false;
}
void SpellHit(Unit* /*caster*/, SpellEntry const* spell)
void SpellHit(Unit* /*caster*/, SpellInfo const* spell)
{
uint32 spellId = 0;
switch(spell->Id)
@@ -366,7 +366,7 @@ class boss_gothik : public CreatureScript
damage = 0;
}
void SpellHitTarget(Unit* target, SpellEntry const* spell)
void SpellHitTarget(Unit* target, SpellInfo const* spell)
{
if (!me->isInCombat())
return;
@@ -59,7 +59,7 @@ public:
events.ScheduleEvent(EVENT_BERSERK, 12*60000);
}
void SpellHitTarget(Unit* target, const SpellEntry *spell)
void SpellHitTarget(Unit* target, const SpellInfo *spell)
{
if (spell->Id == uint32(SPELL_SLIME_SPRAY))
{
@@ -132,7 +132,7 @@ public:
CheckPlayersFrostResist();
}
void SpellHitTarget(Unit* target, const SpellEntry *spell)
void SpellHitTarget(Unit* target, const SpellInfo *spell)
{
if (spell->Id == SPELL_ICEBOLT)
{