Changeset 162 for trunk

Show
Ignore:
Timestamp:
11/19/08 13:42:01 (17 years ago)
Author:
yumileroy
Message:

[svn] Remove a hack on triggered spell target selection.
Some minor fixes.

Original author: megamage
Date: 2008-11-04 10:33:02-06:00

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/sql/updates/163_world.sql

    r160 r162  
    11DELETE FROM spell_linked_spell WHERE `spell_trigger` IN (39992, 39835, 42052, -41914, 41126); 
    2 --INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (39992, 39835, 1, 'Needle Spine'); 
     2-- INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (39992, 39835, 1, 'Needle Spine'); 
    33INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (39835, 39968, 1, 'Needle Spine'); 
    44INSERT INTO spell_linked_spell (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES (-41914, 41915, 0, 'Summon Parasitic Shadowfiend'); 
  • trunk/src/game/SpellAuras.cpp

    r161 r162  
    18811881        } 
    18821882    } 
    1883     // All ok cast by default case 
     1883    m_target->CastSpell(target, triggredSpellInfo, true, 0, this, originalCasterGUID); 
     1884    /*// All ok cast by default case 
    18841885    Spell *spell = new Spell(m_target, triggredSpellInfo, true, originalCasterGUID ); 
    18851886 
     
    18911892        targets.setDestination(dynObj->GetPositionX(),dynObj->GetPositionY(),dynObj->GetPositionZ()); 
    18921893 
    1893     spell->prepare(&targets, this); 
     1894    spell->prepare(&targets, this);*/ 
    18941895} 
    18951896 
  • trunk/src/game/SpellEffects.cpp

    r161 r162  
    5757#include "Util.h" 
    5858#include "TemporarySummon.h" 
    59  
    6059 
    6160pEffect SpellEffects[TOTAL_SPELL_EFFECTS]= 
     
    224223void Spell::EffectUnused(uint32 /*i*/) 
    225224{ 
    226     // NOT USED BY ANY SPELL OR USELESS OR IMPLEMENTED IN DIFFERENT WAY IN TRINITY 
     225    // NOT USED BY ANY SPELL OR USELESS OR IMPLEMENTED IN DIFFERENT WAY IN MANGOS 
    227226} 
    228227