mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[8640] Puted back commented not obsolete but disabled code what i removed in [8637] by mistake.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
ec2fd7396f
commit
7eb95ed64b
2 changed files with 26 additions and 1 deletions
|
|
@ -2268,6 +2268,31 @@ void SpellMgr::LoadSpellScriptTarget()
|
|||
|
||||
delete result;
|
||||
|
||||
// Check all spells
|
||||
/* Disabled (lot errors at this moment)
|
||||
for(uint32 i = 1; i < sSpellStore.nCount; ++i)
|
||||
{
|
||||
SpellEntry const * spellInfo = sSpellStore.LookupEntry(i);
|
||||
if(!spellInfo)
|
||||
continue;
|
||||
|
||||
bool found = false;
|
||||
for(int j=0; j<3; ++j)
|
||||
{
|
||||
if( spellInfo->EffectImplicitTargetA[j] == TARGET_SCRIPT || spellInfo->EffectImplicitTargetA[j] != TARGET_SELF && spellInfo->EffectImplicitTargetB[j] == TARGET_SCRIPT )
|
||||
{
|
||||
SpellScriptTarget::const_iterator lower = spellmgr.GetBeginSpellScriptTarget(spellInfo->Id);
|
||||
SpellScriptTarget::const_iterator upper = spellmgr.GetEndSpellScriptTarget(spellInfo->Id);
|
||||
if(lower==upper)
|
||||
{
|
||||
sLog.outErrorDb("Spell (ID: %u) has effect EffectImplicitTargetA/EffectImplicitTargetB = %u (TARGET_SCRIPT), but does not have record in `spell_script_target`",spellInfo->Id,TARGET_SCRIPT);
|
||||
break; // effects of spell
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded %u Spell Script Targets", count);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8639"
|
||||
#define REVISION_NR "8640"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue