mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[11999] Implement spell 45204
Original author Wowka321, thx to stfx for porting Signed-off-by: stfx <stfx@hotmail.de> Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
f13213018c
commit
1c1bc5c659
2 changed files with 9 additions and 1 deletions
|
|
@ -6893,6 +6893,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
unitTarget->RemoveAurasDueToSpell(46394);
|
unitTarget->RemoveAurasDueToSpell(46394);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 45204: // Clone Me!
|
||||||
|
{
|
||||||
|
if (!unitTarget)
|
||||||
|
return;
|
||||||
|
|
||||||
|
unitTarget->CastSpell(m_caster, m_spellInfo->CalculateSimpleValue(eff_idx), true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 45206: // Copy Off-hand Weapon
|
case 45206: // Copy Off-hand 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 "11998"
|
#define REVISION_NR "11999"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue