mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7588] Remove redendent GO support and switch back to original suggested by Lightguard version with Unit only case
This commit is contained in:
parent
e090283840
commit
840d7d5e0a
4 changed files with 3 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue