Perhaps not a bug, but it is something that should be fixed...
Find:
Code:
' Target type constants
Public Const TARGET_TYPE_PLAYER = 0
Public Const TARGET_TYPE_NPC = 1
Replace:
Code:
' Target type constants
Public Const TARGET_TYPE_NONE = 0
Public Const TARGET_TYPE_PLAYER = 1
Public Const TARGET_TYPE_NPC = 2
Find:
Code:
' Check if target is player who died and if so set target to 0
If Player(Attacker).TargetType = TARGET_TYPE_PLAYER And Player(Attacker).Target = Victim Then
Player(Attacker).Target = 0
Player(Attacker).TargetType = 0
End If
Replace:
Code:
' Check if target is player who died and if so set target to 0
If Player(Attacker).TargetType = TARGET_TYPE_PLAYER And Player(Attacker).Target = Victim Then
Player(Attacker).Target = 0
Player(Attacker).TargetType = TARGET_TYPE_NONE
End If
Find:
Code:
' Check if target is npc that died and if so set target to 0
If Player(Attacker).TargetType = TARGET_TYPE_NPC And Player(Attacker).Target = MapNpcNum Then
Player(Attacker).Target = 0
Player(Attacker).TargetType = 0
End If
Replace:
Code:
' Check if target is npc that died and if so set target to 0
If Player(Attacker).TargetType = TARGET_TYPE_NPC And Player(Attacker).Target = MapNpcNum Then
Player(Attacker).Target = 0
Player(Attacker).TargetType = TARGET_TYPE_NONE
End If
Find:
Code:
Player(Index).TargetType = 0
In Sub ClearPlayer()
Replace:
Code:
Player(Index).TargetType = TARGET_TYPE_NONE
Hai, Dekimashita~~