Skip to content

Commit

Permalink
[12853] Implement script effect for spell 45313
Browse files Browse the repository at this point in the history
  • Loading branch information
xfurry committed Mar 5, 2015
1 parent b9b91ba commit 160a6a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7878,6 +7878,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget, 45259, true);
return;
}
case 45313: // Anchor Here
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;

((Creature*)unitTarget)->SetRespawnCoord(unitTarget->GetPositionX(), unitTarget->GetPositionY(), unitTarget->GetPositionZ(), unitTarget->GetOrientation());
return;
}
case 45625: // Arcane Chains: Character Force Cast
{
if (!unitTarget)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12852"
#define REVISION_NR "12853"
#endif // __REVISION_NR_H__

0 comments on commit 160a6a1

Please sign in to comment.