mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Feature] Add special ability to block /open (#2506)
This adds the IMMUNE_OPEN (53) special ability to prevent /open on LDON_TREASURE classes.
This commit is contained in:
@@ -5028,6 +5028,12 @@ void Client::HandleLDoNOpen(NPC *target)
|
||||
return;
|
||||
}
|
||||
|
||||
if (target->GetSpecialAbility(IMMUNE_OPEN))
|
||||
{
|
||||
LogDebug("[{}] tried to open [{}] but it was immune", GetName(), target->GetName());
|
||||
return;
|
||||
}
|
||||
|
||||
if(DistanceSquaredNoZ(m_Position, target->GetPosition()) > RuleI(Adventure, LDoNTrapDistanceUse))
|
||||
{
|
||||
LogDebug("[{}] tried to open [{}] but [{}] was out of range",
|
||||
|
||||
Reference in New Issue
Block a user