mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Merge
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user