Targeting sanity check
This commit is contained in:
parent
858e86d45b
commit
192e87dafa
1 changed files with 5 additions and 0 deletions
|
|
@ -1126,6 +1126,11 @@ namespace Server.Network
|
|||
// User pressed escape
|
||||
t.Cancel( from, TargetCancelType.Canceled );
|
||||
}
|
||||
else if ( t.TargetID != targetID )
|
||||
{
|
||||
// Sanity, prevent fake target
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
object toTarget;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue