Core/Spells: Clean up some gameobject types in EffectOpenLock
Port From (https://github.com/TrinityCore/TrinityCore/commit/42de312a79b5ce3900d2231d89f5cd716c03ce01)
This commit is contained in:
@@ -2437,6 +2437,15 @@ namespace Game.Entities
|
|||||||
Delete();
|
Delete();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case GameObjectTypes.CapturePoint:
|
||||||
|
{
|
||||||
|
Player player = user.ToPlayer();
|
||||||
|
if (player == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
AssaultCapturePoint(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
case GameObjectTypes.ItemForge:
|
case GameObjectTypes.ItemForge:
|
||||||
{
|
{
|
||||||
GameObjectTemplate info = GetGoInfo();
|
GameObjectTemplate info = GetGoInfo();
|
||||||
|
|||||||
@@ -1235,11 +1235,6 @@ namespace Game.Spells
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (goInfo.type == GameObjectTypes.CapturePoint)
|
|
||||||
{
|
|
||||||
gameObjTarget.AssaultCapturePoint(player);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if (goInfo.type == GameObjectTypes.FlagStand)
|
else if (goInfo.type == GameObjectTypes.FlagStand)
|
||||||
{
|
{
|
||||||
//CanUseBattlegroundObject() already called in CheckCast()
|
//CanUseBattlegroundObject() already called in CheckCast()
|
||||||
@@ -1252,11 +1247,6 @@ namespace Game.Spells
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (goInfo.type == GameObjectTypes.NewFlag)
|
|
||||||
{
|
|
||||||
gameObjTarget.Use(player);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if (m_spellInfo.Id == 1842 && gameObjTarget.GetGoInfo().type == GameObjectTypes.Trap && gameObjTarget.GetOwner() != null)
|
else if (m_spellInfo.Id == 1842 && gameObjTarget.GetGoInfo().type == GameObjectTypes.Trap && gameObjTarget.GetOwner() != null)
|
||||||
{
|
{
|
||||||
gameObjTarget.SetLootState(LootState.JustDeactivated);
|
gameObjTarget.SetLootState(LootState.JustDeactivated);
|
||||||
|
|||||||
Reference in New Issue
Block a user