@@ -21,12 +21,10 @@ function Create(self)
21
21
self .equippedInMainHand = false ;
22
22
self :SetOneHanded (true );
23
23
local rootParent = self :GetRootParent ();
24
- if IsAHuman (rootParent ) then
25
- if ToAHuman (rootParent ).EquippedItem and ToAHuman (rootParent ).EquippedItem .UniqueID == self .UniqueID then
26
- ToAHuman (rootParent ):UnequipBGArm ();
27
- self .equippedInMainHand = true ;
28
- self :SetOneHanded (false );
29
- end
24
+ if IsAHuman (rootParent ) and ToAHuman (rootParent ).EquippedItem and ToAHuman (rootParent ).EquippedItem .UniqueID == self .UniqueID then
25
+ ToAHuman (rootParent ):UnequipBGArm ();
26
+ self .equippedInMainHand = true ;
27
+ self :SetOneHanded (false );
30
28
end
31
29
end
32
30
@@ -36,12 +34,10 @@ function OnAttach(self, newParent)
36
34
self .Bashing = false ;
37
35
self .bashActive = false ;
38
36
self .HitsMOs = false local rootParent = self :GetRootParent ();
39
- if IsAHuman (rootParent ) then
40
- if ToAHuman (rootParent ).EquippedItem .UniqueID == self .UniqueID then
41
- ToAHuman (rootParent ):UnequipBGArm ();
42
- self .equippedInMainHand = true ;
43
- self :SetOneHanded (false );
44
- end
37
+ if IsAHuman (rootParent ) and ToAHuman (rootParent ).EquippedItem and ToAHuman (rootParent ).EquippedItem .UniqueID == self .UniqueID then
38
+ ToAHuman (rootParent ):UnequipBGArm ();
39
+ self .equippedInMainHand = true ;
40
+ self :SetOneHanded (false );
45
41
end
46
42
end
47
43
@@ -104,6 +100,7 @@ function ThreadedUpdate(self)
104
100
if not self .bashActive then
105
101
self .bashActive = true ;
106
102
end
103
+
107
104
self .StanceOffset = self .bashActiveStanceOffset ;
108
105
self .SharpStanceOffset = self .bashActiveStanceOffset ;
109
106
end
@@ -146,6 +143,5 @@ function SyncedUpdate(self)
146
143
end
147
144
end
148
145
end
149
-
150
146
end
151
147
end
0 commit comments