From da90fb342b0c2c789e0d841fe7254b3c32ee0389 Mon Sep 17 00:00:00 2001 From: Cekis Date: Wed, 7 Dec 2016 22:23:38 +0000 Subject: [PATCH] Fixed issue with respec clearing meatlump timeouts. --- .../compiled/game/script/library/utils.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/library/utils.java b/sku.0/sys.server/compiled/game/script/library/utils.java index 185e41d2d..2a6f54fd2 100755 --- a/sku.0/sys.server/compiled/game/script/library/utils.java +++ b/sku.0/sys.server/compiled/game/script/library/utils.java @@ -6778,7 +6778,22 @@ public class utils extends script.base_script } } respec.setRespecVersion(player); + float mtp_eavesdrop_duration = 0; + float mtp_wine_duration = 0; + obj_id self = getSelf(); + if(buff.hasBuff(self, "mtp_eavesdrop_lockout")){ + mtp_eavesdrop_duration = buff.getDuration("mtp_eavesdrop_lockout"); + } + if(buff.hasBuff(self, "mtp_wine_lockout")){ + mtp_wine_duration = buff.getDuration("mtp_wine_lockout"); + } buff.removeAllBuffs(player, false, true); + if(mtp_eavesdrop_duration > 0){ + buff.applyBuff(self, "mtp_eavesdrop_lockout", mtp_eavesdrop_duration); + } + if(mtp_wine_duration > 0){ + buff.applyBuff(self, "mtp_wine_lockout", mtp_eavesdrop_duration); + } resetExpertises(player); } public static obj_id[] getAllRidersInVehicle(obj_id player, obj_id vehicle) throws InterruptedException