[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. --HG-- branch : trunk
This commit is contained in:
@@ -110,6 +110,21 @@ bool GossipSelect_npc_rathis_tomber(Player *player, Creature *_Creature, uint32
|
||||
return true;
|
||||
}
|
||||
|
||||
/*#####
|
||||
## go_gilded_brazier (Paladin First Trail quest (9678))
|
||||
#####*/
|
||||
|
||||
bool GOHello_gilded_brazier(Player *player, GameObject* _GO)
|
||||
{
|
||||
if (player->GetQuestStatus(9678) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
Creature *Stillblade = player->SummonCreature(17716, 8106.11, -7542.06, 151.775, 3.02598, TEMPSUMMON_DEAD_DESPAWN, 60000);
|
||||
if (Stillblade)
|
||||
((CreatureAI*)Stillblade->AI())->AttackStart(player);
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
void AddSC_ghostlands()
|
||||
{
|
||||
Script *newscript;
|
||||
@@ -131,4 +146,9 @@ void AddSC_ghostlands()
|
||||
newscript->pGossipHello = &GossipHello_npc_rathis_tomber;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_rathis_tomber;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "go_gilded_brazier";
|
||||
newscript->pGOHello = &GOHello_gilded_brazier;
|
||||
m_scripts[nrscripts++] = newscript;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user