Changeset 205 for trunk

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

[svn] Fix pet spells: only AOE and enemy target spells are autocastable.
Script for quest: First Trial. Original patch by Bufu (SD2), adapted by Patro.

Original author: megamage
Date: 2008-11-09 23:54:02-06:00

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/sql/updates/211_world_blacktemple.sql

    r203 r205  
    1 DELETE FROM spell_linked_spell WHERE `spell_trigger` IN (39992, 39835, 42052, -41914, -41917, 41126, -41376); 
     1DELETE FROM spell_linked_spell WHERE `spell_trigger` IN (39992, 39835, 42052, -41914, -41917, 41126, -41376, 39908); 
    22-- 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'); 
  • trunk/src/bindings/scripts/scripts/zone/ghostlands/ghostlands.cpp

    r90 r205  
    111111} 
    112112 
     113/*##### 
     114## go_gilded_brazier (Paladin First Trail quest (9678)) 
     115#####*/ 
     116 
     117bool GOHello_gilded_brazier(Player *player, GameObject* _GO) 
     118{ 
     119    if (player->GetQuestStatus(9678) == QUEST_STATUS_INCOMPLETE) 
     120    { 
     121        Creature *Stillblade = player->SummonCreature(17716, 8106.11, -7542.06, 151.775, 3.02598, TEMPSUMMON_DEAD_DESPAWN, 60000); 
     122        if (Stillblade) 
     123            ((CreatureAI*)Stillblade->AI())->AttackStart(player); 
     124    } 
     125    return true; 
     126}; 
     127 
    113128void AddSC_ghostlands() 
    114129{ 
     
    132147    newscript->pGossipSelect = &GossipSelect_npc_rathis_tomber; 
    133148    m_scripts[nrscripts++] = newscript; 
     149 
     150    newscript = new Script; 
     151    newscript->Name = "go_gilded_brazier"; 
     152    newscript->pGOHello = &GOHello_gilded_brazier; 
     153    m_scripts[nrscripts++] = newscript; 
    134154} 
  • trunk/src/game/Pet.cpp

    r174 r205  
    16581658        return; 
    16591659 
     1660    if(const SpellEntry *tempSpell = GetSpellStore()->LookupEntry(spellid)) 
     1661        if(tempSpell->EffectImplicitTargetA[0] != TARGET_ALL_AROUND_CASTER 
     1662            || tempSpell->EffectImplicitTargetA[0] != TARGET_CHAIN_DAMAGE) 
     1663            return;     
     1664 
    16601665    PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid); 
    16611666