mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
Fix some combat behaviour of NPC-Pets
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
177bc78108
commit
eca3586d74
6 changed files with 22 additions and 16 deletions
|
|
@ -5061,8 +5061,7 @@ void Spell::EffectPickPocket(SpellEffectIndex /*eff_idx*/)
|
|||
{
|
||||
// Reveal action + get attack
|
||||
m_caster->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH);
|
||||
if (((Creature*)unitTarget)->AI())
|
||||
((Creature*)unitTarget)->AI()->AttackedBy(m_caster);
|
||||
unitTarget->AttackedBy(m_caster);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue