mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-02 06:02:25 +00:00
[Bug Fix] Do not allow /open to be used on traps or auras, causes crash (#1951)
* Update client_packet.cpp * [Bug Fix] Do not allow /open to be used on traps or auras, causes crash * [Bug Fix] Do not allow /open to be used on traps or auras, causes crash
This commit is contained in:
parent
cba95851a2
commit
a6cd0bc33a
@ -9052,7 +9052,7 @@ void Client::Handle_OP_LDoNButton(const EQApplicationPacket *app)
|
|||||||
void Client::Handle_OP_LDoNDisarmTraps(const EQApplicationPacket *app)
|
void Client::Handle_OP_LDoNDisarmTraps(const EQApplicationPacket *app)
|
||||||
{
|
{
|
||||||
Mob * target = GetTarget();
|
Mob * target = GetTarget();
|
||||||
if (target->IsNPC())
|
if (target && target->IsNPC() && !target->IsAura())
|
||||||
{
|
{
|
||||||
if (HasSkill(EQ::skills::SkillDisarmTraps))
|
if (HasSkill(EQ::skills::SkillDisarmTraps))
|
||||||
{
|
{
|
||||||
@ -9071,21 +9071,22 @@ void Client::Handle_OP_LDoNDisarmTraps(const EQApplicationPacket *app)
|
|||||||
void Client::Handle_OP_LDoNInspect(const EQApplicationPacket *app)
|
void Client::Handle_OP_LDoNInspect(const EQApplicationPacket *app)
|
||||||
{
|
{
|
||||||
Mob * target = GetTarget();
|
Mob * target = GetTarget();
|
||||||
if (target && target->GetClass() == LDON_TREASURE)
|
if (target && target->GetClass() == LDON_TREASURE && !target->IsAura())
|
||||||
Message(Chat::Yellow, "%s", target->GetCleanName());
|
Message(Chat::Yellow, "%s", target->GetCleanName());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::Handle_OP_LDoNOpen(const EQApplicationPacket *app)
|
void Client::Handle_OP_LDoNOpen(const EQApplicationPacket *app)
|
||||||
{
|
{
|
||||||
Mob * target = GetTarget();
|
Mob * target = GetTarget();
|
||||||
if (target && target->IsNPC())
|
if (target && target->IsNPC() && !target->IsAura()) {
|
||||||
HandleLDoNOpen(target->CastToNPC());
|
HandleLDoNOpen(target->CastToNPC());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::Handle_OP_LDoNPickLock(const EQApplicationPacket *app)
|
void Client::Handle_OP_LDoNPickLock(const EQApplicationPacket *app)
|
||||||
{
|
{
|
||||||
Mob * target = GetTarget();
|
Mob * target = GetTarget();
|
||||||
if (target->IsNPC())
|
if (target && target->IsNPC() && !target->IsAura())
|
||||||
{
|
{
|
||||||
if (HasSkill(EQ::skills::SkillPickLock))
|
if (HasSkill(EQ::skills::SkillPickLock))
|
||||||
{
|
{
|
||||||
@ -9104,7 +9105,7 @@ void Client::Handle_OP_LDoNPickLock(const EQApplicationPacket *app)
|
|||||||
void Client::Handle_OP_LDoNSenseTraps(const EQApplicationPacket *app)
|
void Client::Handle_OP_LDoNSenseTraps(const EQApplicationPacket *app)
|
||||||
{
|
{
|
||||||
Mob * target = GetTarget();
|
Mob * target = GetTarget();
|
||||||
if (target->IsNPC())
|
if (target && target->IsNPC() && !target->IsAura())
|
||||||
{
|
{
|
||||||
if (HasSkill(EQ::skills::SkillSenseTraps))
|
if (HasSkill(EQ::skills::SkillSenseTraps))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user