[7588] Remove redendent GO support and switch back to original suggested by Lightguard version with Unit only case

This commit is contained in:
VladimirMangos 2009-03-30 02:05:46 +04:00
parent e090283840
commit 840d7d5e0a
4 changed files with 3 additions and 7 deletions

View file

@ -1223,10 +1223,6 @@ void Spell::DoAllEffectOnTarget(GOTargetInfo *target)
// ignore autorepeat/melee casts for speed (not exist quest for spells (hm... )
if( m_caster->GetTypeId() == TYPEID_PLAYER && !IsAutoRepeat() && !IsNextMeleeSwingSpell() && !IsChannelActive() )
((Player*)m_caster)->CastedCreatureOrGO(go->GetEntry(),go->GetGUID(),m_spellInfo->Id);
// Call scripted function for AI if this spell is casted by a creature
if(m_caster->GetTypeId()==TYPEID_UNIT && ((Creature*)m_caster)->AI())
((Creature*)m_caster)->AI()->SpellHitTarget(go,m_spellInfo);
}
void Spell::DoAllEffectOnTarget(ItemTargetInfo *target)