mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[12704] Fix (at least) two false positive startup errors
* Fix startup-error related to quest 10162 * Fix startup-error for spell 53821 (original author @Schmoozerd)
This commit is contained in:
parent
1b9c1a44ee
commit
a5a5009d44
4 changed files with 5 additions and 18 deletions
|
|
@ -1182,17 +1182,6 @@ void SpellMgr::LoadSpellTargetPositions()
|
|||
continue;
|
||||
if (spellEffect->EffectImplicitTargetA==TARGET_TABLE_X_Y_Z_COORDINATES || spellEffect->EffectImplicitTargetB==TARGET_TABLE_X_Y_Z_COORDINATES)
|
||||
{
|
||||
// additional requirements
|
||||
if (spellEffect->Effect==SPELL_EFFECT_BIND && spellEffect->EffectMiscValue)
|
||||
{
|
||||
uint32 zone_id = sTerrainMgr.GetAreaId(st.target_mapId, st.target_X, st.target_Y, st.target_Z);
|
||||
if (int32(zone_id) != spellEffect->EffectMiscValue)
|
||||
{
|
||||
sLog.outErrorDb("Spell (Id: %u) listed in `spell_target_position` expected point to zone %u bit point to zone %u.",Spell_ID, spellEffect->EffectMiscValue, zone_id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue