mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-04 04:15:52 -04:00
Fixed issue where attacker was attempting to reset hate on a non-tangible object.
This commit is contained in:
@@ -1747,11 +1747,11 @@ public class combat extends script.base_script
|
||||
addHate(attacker, defender, 0.0f);
|
||||
|
||||
{
|
||||
final obj_id[] hateList = getHateList(attacker);
|
||||
obj_id[] hateList = getHateList(attacker);
|
||||
for (int i = 0; i < hateList.length; ++i)
|
||||
{
|
||||
final obj_id hateTarget = hateList[i];
|
||||
if (!isPlayer(hateTarget))
|
||||
obj_id hateTarget = hateList[i];
|
||||
if (!isPlayer(hateTarget) && isTangible(hateTarget))
|
||||
{
|
||||
if (getHateTarget(hateTarget) == attacker)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user