Removing PvP flags that were added when bounty is being collected and the target or hunter are killed and the bounty collection failed.

This commit is contained in:
Cekis
2016-12-29 20:01:43 +00:00
parent 064bf62a0a
commit c2bc0b1c10
+5
View File
@@ -442,6 +442,11 @@ public class bounty_hunter extends script.base_script
endMission(mission);
}
removeJediBounty(target, hunter);
// remove TEFs that were set when players engaged in battle
if(isPlayer(hunter) && isPlayer(target)) {
if (pvpHasPersonalEnemyFlag(target, hunter)) pvpRemovePersonalEnemyFlags(target, hunter);
if (pvpHasPersonalEnemyFlag(hunter, target)) pvpRemovePersonalEnemyFlags(hunter, target);
}
CustomerServiceLog("bounty", "%TU was defeated by %TT and failed to collect the bounty on %PT head", hunter, target);
}
public static obj_id getBountyMission(obj_id player) throws InterruptedException