Comments updated
This commit is contained in:
parent
77ded28826
commit
5230598ba3
1 changed files with 2 additions and 0 deletions
|
|
@ -2249,6 +2249,8 @@ namespace TShockAPI
|
|||
*
|
||||
* If the player was not specified, that is, the player index is -1, then it is definitely a custom cause, as you can only deal damage with a projectile or another player.
|
||||
* This is how everything else works. If an NPC is specified, its value is not -1, which is a custom cause.
|
||||
*
|
||||
* Checking whether this damage came from the player is necessary, because the damage from the player can come even when it is hit by a NPC
|
||||
*/
|
||||
if (TShock.Config.Settings.DisableCustomDeathMessages && id != args.Player.Index &&
|
||||
(reason._sourcePlayerIndex == -1 || reason._sourceNPCIndex != -1 || reason._sourceOtherIndex != -1 || reason._sourceCustomReason != null))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue