Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnitAI: Fix Wandering Eye of Kilrogg #718

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(20038,'spell_explosion_razorgore'),
(21651,'spell_opening_capping'),
(22858,'spell_retaliation_creature'),
(22876,'spell_summon_netherwalker'),
(23134,'spell_goblin_bomb'),
(23226,'spell_ritual_candle_aura'),
(24228,'spell_arlokk_vanish'),
Expand Down
4 changes: 0 additions & 4 deletions src/game/AI/BaseAI/UnitAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,6 @@ void UnitAI::TimedFleeingEnded()

bool UnitAI::DoFlee(uint32 duration)
{
Unit* victim = m_unit->GetVictim();
if (!victim)
return false;

if (!duration)
duration = sWorld.getConfig(CONFIG_UINT32_CREATURE_FAMILY_FLEE_DELAY);

Expand Down
13 changes: 13 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/kalimdor/dire_maul/dire_maul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,18 @@ struct RitualCandleAura : public SpellScript
}
};

// 22876 - Summon Netherwalker
struct SummonNetherWalker : public SpellScript
{
void OnSuccessfulFinish(Spell* spell) const override
{
Creature* caster = static_cast<Creature*>(spell->GetCaster());
if (!caster || !caster->IsAlive() || !caster->IsCreature())
return;
caster->ForcedDespawn();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1000 ms delay, make mob passive and set combat script to true cos its not reacting in that 1 sec delay

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From sniff btw

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

}
};

void AddSC_dire_maul()
{
Script* pNewScript = new Script;
Expand All @@ -326,4 +338,5 @@ void AddSC_dire_maul()
pNewScript->RegisterSelf();

RegisterSpellScript<RitualCandleAura>("spell_ritual_candle_aura");
RegisterSpellScript<SummonNetherWalker>("spell_summon_netherwalker");
}