Skip to content

Commit 1f2069c

Browse files
committed
Fix serpent flying around world origin when engaged by an untrackable target
Closes #19
1 parent 7b17629 commit 1f2069c

1 file changed

Lines changed: 26 additions & 16 deletions

File tree

src/main/resources/Server/NPC/Roles/Boss/Serpent_Storm.json

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,19 @@
114114
},
115115
{
116116
"Sensor": {
117-
"Type": "Damage",
118-
"Combat": true,
119-
"TargetSlot": "Target_Combat_First_Attacker"
117+
"Type": "And",
118+
"Sensors": [
119+
{
120+
"Type": "Damage",
121+
"Combat": true,
122+
"TargetSlot": "Target_Combat_First_Attacker"
123+
},
124+
{
125+
"Type": "Target",
126+
"TargetSlot": "Target_Combat_First_Attacker",
127+
"Range": 1000
128+
}
129+
]
120130
},
121131
"Actions": [
122132
{ "Type": "AddToHostileTargetMemory" },
@@ -194,9 +204,19 @@
194204
},
195205
{
196206
"Sensor": {
197-
"Type": "Damage",
198-
"Combat": true,
199-
"TargetSlot": "Target_Combat_First_Attacker"
207+
"Type": "And",
208+
"Sensors": [
209+
{
210+
"Type": "Damage",
211+
"Combat": true,
212+
"TargetSlot": "Target_Combat_First_Attacker"
213+
},
214+
{
215+
"Type": "Target",
216+
"TargetSlot": "Target_Combat_First_Attacker",
217+
"Range": 1000
218+
}
219+
]
200220
},
201221
"Actions": [
202222
{ "Type": "AddToHostileTargetMemory" },
@@ -395,11 +415,6 @@
395415
"TargetSlot": "Target_Stalk",
396416
"Range": 1000
397417
},
398-
{
399-
"Type": "ReadPosition",
400-
"Slot": "Target_Stalk_Last_Seen",
401-
"Range": 1000
402-
},
403418
{ "Type": "StormSerpentReadLeashPosition" }
404419
]
405420
},
@@ -441,11 +456,6 @@
441456
"TargetSlot": "Target_Stalk",
442457
"Range": 1000
443458
},
444-
{
445-
"Type": "ReadPosition",
446-
"Slot": "Target_Stalk_Last_Seen",
447-
"Range": 1000
448-
},
449459
{ "Type": "StormSerpentReadLeashPosition" }
450460
]
451461
},

0 commit comments

Comments
 (0)