diff --git a/ryzom/tools/extract_r2_required/generate_aiaction.py b/ryzom/tools/extract_r2_required/generate_aiaction.py
index 79d667648..788dfdeaa 100644
--- a/ryzom/tools/extract_r2_required/generate_aiaction.py
+++ b/ryzom/tools/extract_r2_required/generate_aiaction.py
@@ -12,7 +12,7 @@ if not os.path.isdir(aiActionFolder):
base = {
"combat": {
"fauna": meleeSpec,
- "melee": meleeSpec,
+ "melee": [ "" ],
"range": meleeSpec,
},
# "enchanted": { # These 1.5x the damage (regular melee plus 0.5x magic damage)
@@ -187,6 +187,8 @@ printEgsConfiguration()
for skill in base["combat"]:
for spec in base["combat"][skill]:
name = "combat_" + skill + "_" + spec
+ if spec == "":
+ name = "combat_" + skill
type = "Melee"
if skill == "range":
type = "Range"
@@ -206,7 +208,8 @@ for skill in base["combat"]:
f.write(" \n")
f.write(" \n")
f.write(" \n")
- f.write(" \n")
+ if behaviour != "UNKNOWN_BEHAVIOUR":
+ f.write(" \n")
f.write(" \n")
f.write("\n")