diff options
| author | megamage <none@none> | 2009-06-11 11:35:31 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-11 11:35:31 -0500 |
| commit | e82ae5f8df582f896adfb3d3c5a0edb187a3946e (patch) | |
| tree | e5f3a5a730173baf6cb4b483cc1527c3572928fc /src | |
| parent | 1c97b2bf796fb367b77e653556220e69cf7b5878 (diff) | |
*Fix spell 16007.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Spell.cpp | 3 | ||||
| -rw-r--r-- | src/game/SpellMgr.cpp | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index db3d05036f6..4cd3a5d298a 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2021,8 +2021,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur) float range = GetSpellMaxRange(m_spellInfo, IsPositiveSpell(m_spellInfo->Id)); if(modOwner) modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_RANGE, range, this); - WorldObject *target = SearchNearbyTarget(range, SPELL_TARGETS_ENTRY); - if(target) + if(WorldObject *target = SearchNearbyTarget(range, SPELL_TARGETS_ENTRY)) m_targets.setDestination(target); break; } diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 9901b0fe7af..67f31ad7759 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -3325,6 +3325,11 @@ void SpellMgr::LoadSpellCustomAttr() switch(i) { + case 16007: // Draco-Incarcinatrix 900 + // was 46, but effect is aura effect + spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_NEARBY_ENTRY; + spellInfo->EffectImplicitTargetB[0] = TARGET_DST_NEARBY_ENTRY; + break; case 26029: // dark glare case 37433: // spout case 43140: case 43215: // flame breath |
