mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 05:42:26 +00:00
Misc fizes.
This commit is contained in:
parent
e7e1b46b36
commit
34a4b2ab37
@ -11374,6 +11374,13 @@ void command_camerashake(Client *c, const Seperator *sep)
|
|||||||
void command_disarmtrap(Client *c, const Seperator *sep)
|
void command_disarmtrap(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
Mob *target = c->GetTarget();
|
Mob *target = c->GetTarget();
|
||||||
|
|
||||||
|
if(!target)
|
||||||
|
{
|
||||||
|
c->Message(13, "You must have a target.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(target->IsNPC())
|
if(target->IsNPC())
|
||||||
{
|
{
|
||||||
if(c->HasSkill(DISARM_TRAPS))
|
if(c->HasSkill(DISARM_TRAPS))
|
||||||
@ -11393,6 +11400,12 @@ void command_disarmtrap(Client *c, const Seperator *sep)
|
|||||||
void command_sensetrap(Client *c, const Seperator *sep)
|
void command_sensetrap(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
Mob * target = c->GetTarget();
|
Mob * target = c->GetTarget();
|
||||||
|
if(!target)
|
||||||
|
{
|
||||||
|
c->Message(13, "You must have a target.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(target->IsNPC())
|
if(target->IsNPC())
|
||||||
{
|
{
|
||||||
if(c->HasSkill(SENSE_TRAPS))
|
if(c->HasSkill(SENSE_TRAPS))
|
||||||
@ -11412,6 +11425,12 @@ void command_sensetrap(Client *c, const Seperator *sep)
|
|||||||
void command_picklock(Client *c, const Seperator *sep)
|
void command_picklock(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
Mob * target = c->GetTarget();
|
Mob * target = c->GetTarget();
|
||||||
|
if(!target)
|
||||||
|
{
|
||||||
|
c->Message(13, "You must have a target.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(target->IsNPC())
|
if(target->IsNPC())
|
||||||
{
|
{
|
||||||
if(c->HasSkill(PICK_LOCK))
|
if(c->HasSkill(PICK_LOCK))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user