Skip to content

Commit

Permalink
Icecrown: Bloodstained Stone
Browse files Browse the repository at this point in the history
Invisibility added
  • Loading branch information
Grz3s authored and killerwife committed Nov 12, 2024
1 parent e92c4c4 commit ef58a4f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/scriptdev2/scriptdev2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ UPDATE creature_template SET ScriptName='npc_infantry' WHERE entry IN (31701,318
UPDATE creature_template SET ScriptName='npc_father_kamaros' WHERE entry IN (31279,32800);
UPDATE creature_template SET ScriptName='npc_saronite_mine_slave' WHERE entry=31397;
UPDATE creature_template SET ScriptName='npc_grand_admiral_westwind' WHERE entry=29621;
UPDATE gameobject_template SET ScriptName='go_bloodstained_stone' WHERE entry IN (194023,194024,193980);

/* IRONFORGE */

Expand Down
18 changes: 18 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,19 @@ bool EffectDummyCreature_npc_grand_admiral_westwind(Unit* pCaster, uint32 uiSpel
return false;
}

/*######
## go_bloodstained_stone
######*/

struct go_bloodstained_stone : public GameObjectAI
{
go_bloodstained_stone(GameObject* go) : GameObjectAI(go)
{
go->GetVisibilityData().SetInvisibilityMask(9, true);
go->GetVisibilityData().AddInvisibilityValue(9, 100);
}
};

/*######
## spell_create_lance - 63845
######*/
Expand Down Expand Up @@ -1325,6 +1338,11 @@ void AddSC_icecrown()
pNewScript->pEffectDummyNPC = &EffectDummyCreature_npc_grand_admiral_westwind;
pNewScript->RegisterSelf();

pNewScript = new Script;
pNewScript->Name = "go_bloodstained_stone";
pNewScript->GetGameObjectAI = &GetNewAIInstance<go_bloodstained_stone>;
pNewScript->RegisterSelf();

RegisterSpellScript<spell_create_lance>("spell_create_lance");
RegisterSpellScript<GrabCapturedCrusader>("spell_grab_captured_crusader");
RegisterSpellScript<DropOffCapturedCrusader>("spell_drop_off_captured_crusader");
Expand Down

0 comments on commit ef58a4f

Please sign in to comment.