mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[11800] Implement spell 29395
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
8b7f3e5245
commit
b8b1676aaf
2 changed files with 17 additions and 1 deletions
|
|
@ -6510,6 +6510,22 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
unitTarget->CastSpell(unitTarget, 38353, true, NULL, NULL, m_caster->GetObjectGuid());
|
unitTarget->CastSpell(unitTarget, 38353, true, NULL, NULL, m_caster->GetObjectGuid());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 29395: // Break Kaliri Egg
|
||||||
|
{
|
||||||
|
uint32 creature_id = 0;
|
||||||
|
uint32 rand = urand(0, 99);
|
||||||
|
|
||||||
|
if (rand < 10)
|
||||||
|
creature_id = 17034;
|
||||||
|
else if (rand < 60)
|
||||||
|
creature_id = 17035;
|
||||||
|
else
|
||||||
|
creature_id = 17039;
|
||||||
|
|
||||||
|
if (WorldObject* pSource = GetAffectiveCasterObject())
|
||||||
|
pSource->SummonCreature(creature_id, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 120*IN_MILLISECONDS);
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 41055: // Copy Weapon
|
case 41055: // Copy Weapon
|
||||||
{
|
{
|
||||||
if (m_caster->GetTypeId() != TYPEID_UNIT || !unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
if (m_caster->GetTypeId() != TYPEID_UNIT || !unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11799"
|
#define REVISION_NR "11800"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue