mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed gl_partycontrol change in commit 9fab4b3
This commit is contained in:
Binary file not shown.
@@ -80,10 +80,12 @@ procedure combatturn_handler begin
|
|||||||
end
|
end
|
||||||
end else if inControl then begin
|
end else if inControl then begin
|
||||||
// remove perks before switching control (only work with 4.1.8+)
|
// remove perks before switching control (only work with 4.1.8+)
|
||||||
foreach (perkID in perksList) begin
|
if (dude_obj != real_dude_obj) then begin
|
||||||
level := has_trait(TRAIT_PERK, real_dude_obj, perkID);
|
foreach (perkID in perksList) begin
|
||||||
if (level) then begin
|
level := has_trait(TRAIT_PERK, real_dude_obj, perkID);
|
||||||
critter_rm_trait(critter, TRAIT_PERK, perkID, level);
|
if (level) then begin
|
||||||
|
critter_rm_trait(critter, TRAIT_PERK, perkID, level);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if isShowTag then begin
|
if isShowTag then begin
|
||||||
|
|||||||
Reference in New Issue
Block a user