Permalink
Browse files

Handle LOCKTYPE_OPEN_ATTACKING for SPELL_EFFECT_OPEN_LOCK

Handle LOCKTYPE_OPEN_ATTACKING for SPELL_EFFECT_OPEN_LOCK with traps GameObject.
  • Loading branch information...
cala committed Jan 12, 2018
1 parent 8fd7361 commit 29dbbe15542e59a8a20736819b468c9fd007a40b
Showing with 9 additions and 3 deletions.
  1. +9 −3 src/game/Spells/SpellEffects.cpp
@@ -5448,10 +5448,16 @@ void Spell::SendLoot(ObjectGuid guid, LootType loottype, LockType lockType)
break;
case GAMEOBJECT_TYPE_TRAP:
if (lockType == LOCKTYPE_DISARM_TRAP || lockType == LOCKTYPE_NONE)
switch (lockType)
{
gameObjTarget->SetLootState(GO_ACTIVATED);
return;
case LOCKTYPE_NONE:
case LOCKTYPE_DISARM_TRAP:
case LOCKTYPE_OPEN_ATTACKING:
gameObjTarget->SetLootState(GO_ACTIVATED);
return;
default:
sLog.outError("Spell::SendLoot unhandled locktype %u for GameObject trap (entry %u) for spell %u.", lockType, gameObjTarget->GetEntry(), m_spellInfo->Id);
return;
}
sLog.outError("Spell::SendLoot unhandled locktype %u for GameObject trap (entry %u) for spell %u.", lockType, gameObjTarget->GetEntry(), m_spellInfo->Id);
return;

0 comments on commit 29dbbe1

Please sign in to comment.