aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-02-01 21:25:10 +0100
committerTrazom62 <none@none>2010-02-01 21:25:10 +0100
commita91bf2f028f63a7b53b203213cc731456d1c5619 (patch)
tree4c9ac91e0ffcf58e42c92f9a29aa646f959232d9 /src
parenta1256d88ee4cb4295e38fcf5f85581e9b1d8c876 (diff)
Fix quest : Death From Above. Thanks clement.roussel for original patch.
Fixes issue #592. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuraEffects.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp
index c881074e076..de50756c316 100644
--- a/src/game/SpellAuraEffects.cpp
+++ b/src/game/SpellAuraEffects.cpp
@@ -5481,6 +5481,14 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo
}
}
break;
+ case 46361: // Reinforced Net
+ if (caster)
+ {
+ float currentGroundLevel = target->GetBaseMap()->GetHeight(target->GetPositionX(), target->GetPositionY(), MAX_HEIGHT);
+ if (target->GetPositionZ() > currentGroundLevel)
+ target->GetMotionMaster()->MoveFall(currentGroundLevel);
+ }
+ break;
case 46699: // Requires No Ammo
if(target->GetTypeId() == TYPEID_PLAYER)
((Player*)target)->RemoveAmmo(); // not use ammo and not allow use