mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Scripts/Gameobject: Journal of Jandice Barov- Convert script to SAI. (#24157)
* Scripts/Gameobject: Journal of Jandice Barov- Convert script to SAI. (Thanks to Sunwell) * Scripts/Gameobject: Journal of Jandice Barov - Update script and move go spawn to bossscript * Update boss_jandice_barov.cpp Co-authored-by: Eridium <6587064+Killyana@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
enum Spells
|
||||
{
|
||||
SPELL_CURSE_OF_BLOOD = 24673,
|
||||
SPELL_ILLUSION = 17773
|
||||
SPELL_ILLUSION = 17773,
|
||||
SPELL_DROP_JOURNAL = 26096
|
||||
};
|
||||
|
||||
enum Events
|
||||
@@ -67,6 +68,7 @@ public:
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
Summons.DespawnAll();
|
||||
DoCast(SPELL_DROP_JOURNAL, true);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
/* ContentData
|
||||
go_barov_journal
|
||||
go_ethereum_prison
|
||||
go_ethereum_stasis
|
||||
go_shrine_of_the_birds
|
||||
@@ -59,34 +58,6 @@ EndContentData */
|
||||
#include "TemporarySummon.h"
|
||||
#include "WorldSession.h"
|
||||
|
||||
/*######
|
||||
## go_barov_journal
|
||||
######*/
|
||||
|
||||
class go_barov_journal : public GameObjectScript
|
||||
{
|
||||
public:
|
||||
go_barov_journal() : GameObjectScript("go_barov_journal") { }
|
||||
|
||||
struct go_barov_journalAI : public GameObjectAI
|
||||
{
|
||||
go_barov_journalAI(GameObject* go) : GameObjectAI(go) { }
|
||||
|
||||
bool GossipHello(Player* player) override
|
||||
{
|
||||
if (player->HasSkill(SKILL_TAILORING) && player->GetBaseSkillValue(SKILL_TAILORING) >= 280 && !player->HasSpell(26086))
|
||||
player->CastSpell(player, 26095, false);
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
GameObjectAI* GetAI(GameObject* go) const override
|
||||
{
|
||||
return new go_barov_journalAI(go);
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## go_gilded_brazier (Paladin First Trail quest (9678))
|
||||
######*/
|
||||
@@ -1996,7 +1967,6 @@ public:
|
||||
|
||||
void AddSC_go_scripts()
|
||||
{
|
||||
new go_barov_journal();
|
||||
new go_gilded_brazier();
|
||||
new go_orb_of_command();
|
||||
new go_shrine_of_the_birds();
|
||||
|
||||
Reference in New Issue
Block a user