Plz, don't laugh, i just newbie =)
SpellEffects.cpp
void Spell::EffectInstaKill(uint32 /*i*/)
...
if(m_spellInfo->Id==52479 || m_spellInfo->Id==52481 || m_spellInfo->Id==52482)
{
m_caster->CastSpell(UnitTarget, 52490, true);
return;
}
At least it doesn't kill anyone (neither npc, neither players) and spawns pet, that is required to get quest done.
But it looks like SD2 doesn't support it yet, because when u get 5 pets and get near Harvester, nothing happens. (Am I wrong?)
But main part still doesn't work. Imo the reason is "unitTarget" and "m_caster". Because we donno who is the caster ( item mb ?) And first, who get in 20m around GO get killed.
What do we need:
1) mob get killed (not player)
2) if mob is miner
2.a) ~30% spawn ghoul
2.b) ~70% spawn angry spirit
3) when u have 5 pets u get near Harvester and all of u pets get killed. After that quest finished (5/5 at once)
How an item works?
- cast spell 52481
- summons object 190769
- script effect 52490
- instakill
- 52490: summons 28845