aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
author_manuel_ <manue.l@live.com.ar>2010-05-23 18:06:22 -0300
committer_manuel_ <manue.l@live.com.ar>2010-05-23 18:06:22 -0300
commit83afcd906117e69caa669a9d3df4abfded565b5e (patch)
treed5f0d1f9dcfed4fe0011e66b7e281e95314ffe6b /src/game/SpellEffects.cpp
parent37e6aa3634f3fdc70416cb379ab94eb64d40e0bc (diff)
Disarm Trap now can be used in BattleGrounds and Arenas.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 205daffb8e3..294d7ee8aa7 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3400,7 +3400,8 @@ void Spell::EffectOpenLock(uint32 effIndex)
}
}else if (gameObjTarget->GetGOInfo()->type == GAMEOBJECT_TYPE_TRAP && gameObjTarget->GetOwner())
{
- gameObjTarget->SetLootState(GO_JUST_DEACTIVATED);
+ gameObjTarget->SetLootState(GO_JUST_DEACTIVATED);
+ return;
}
// TODO: Add script for spell 41920 - Filling, becouse server it freze when use this spell
// handle outdoor pvp object opening, return true if go was registered for handling