mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
v
This commit is contained in:
1 parent
c743925fe0
commit
a8eeb82036
3 files changed
+57
-44
No files matched your search
@@ -55,7 +55,7 @@ public class Duellist : RoleBase
|
||||
{
|
||||
if (!IsEnable) return false;
|
||||
|
||||
if (duellist == null || target == null) return false;
|
||||
if (!duellist || !target) return false;
|
||||
|
||||
Vector2 pos = Pelican.GetBlackRoomPS();
|
||||
|
||||
@@ -66,7 +66,7 @@ public class Duellist : RoleBase
|
||||
if (DuelPair.TryGetValue(duellist.PlayerId, out byte previousTargetId))
|
||||
{
|
||||
PlayerControl previousTarget = GetPlayerById(previousTargetId);
|
||||
if (previousTarget != null) previousTarget.TPToRandomVent();
|
||||
if (previousTarget) previousTarget.TPToRandomVent();
|
||||
}
|
||||
|
||||
duellist.TP(pos);
|
||||
|
||||
Reference in new issue
Block a user