CitizensDev/Citizens2 — pull request #30 by Silthus (2014-05-09 10:44:06+00:00)
Title: Dont call InteractEvent (left click) when damaged

Calling a left click event every time the entity is damaged can leed inter plugin compatibility problems.
There is no check if the player actually left clicked the entity and is in range to click the entity.
When plugins use custom damage systems and long range attack spells, it can be that the entity is damaged by a player but the player is not in range.
When a player executes an are of effect attack and damages all NPCs around him all NPCs will fire a left click event, which then may result in the player "interacting" with the NPCs.

This can leed to unexpected results.