mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-29 15:12:58 -04:00
Fixed issue with respec clearing meatlump timeouts.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user