From ebe3df0806e0a8b48a767e9b650f8b7e29daf22d Mon Sep 17 00:00:00 2001 From: vpinti Date: Sun, 8 Nov 2026 19:27:37 +0100 Subject: [PATCH 1/2] docs(gameobject_template): fix spell focus radius Spell focus data1 is a radius, not a diameter. The core passes spellFocus.dist to IsWithinDistInMap() as is (GameObjectFocusCheck in GridNotifiers.h). The old wording came from TrinityCore, which halved the value until TrinityCore/TrinityCore@828987a. Closes #1297 --- docs/es/gameobject_template.md | 2 +- docs/gameobject_template.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/es/gameobject_template.md b/docs/es/gameobject_template.md index bcb667f95..1d7b08057 100644 --- a/docs/es/gameobject_template.md +++ b/docs/es/gameobject_template.md @@ -250,7 +250,7 @@ Tipo de objeto sin usar **GAMEOBJECT\_TYPE\_SPELL\_FOCUS = 8** - data0: spellFocusType (de SpellFocusObject.dbc; el valor también aparece como RequiresSpellFocus en [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell)) -- data1: diameter (o sea radio\*2) +- data1: radius (en yardas: el hechizo se puede lanzar dentro de esta distancia del foco) - data2: linkedTrap ([gameobject\_template.entry](#entry) (GO generado de tipo 6)) - data3: serverOnly? (Siempre 0) - data4: questID (requiere una [quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id) activa para funcionar) diff --git a/docs/gameobject_template.md b/docs/gameobject_template.md index 37fa2db4c..23757c1bc 100644 --- a/docs/gameobject_template.md +++ b/docs/gameobject_template.md @@ -250,7 +250,7 @@ Object type not used **GAMEOBJECT\_TYPE\_SPELL\_FOCUS = 8** - data0: spellFocusType (from SpellFocusObject.dbc; value also appears as RequiresSpellFocus in [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell)) -- data1: diameter (so radius\*2) +- data1: radius (in yards: the spell can be cast within this distance of the focus) - data2: linkedTrap ([gameobject\_template.entry](#entry) (Spawned GO type 6)) - data3: serverOnly? (Always 0) - data4: questID (Required active [quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id) to work) From dc42b493ed00f2ac9b5417b4e5a8f0b2ee249ac8 Mon Sep 17 00:00:00 2001 From: vpinti Date: Sun, 8 Nov 2026 19:33:57 +0100 Subject: [PATCH 2/2] docs(gameobject_template): note focus size, fix cn Note that the caster and focus sizes are added to the spell focus radius, so the real range is slightly larger than data1. Apply the same radius fix to the Chinese page. --- docs/cn/gameobject_template.md | 2 +- docs/es/gameobject_template.md | 2 +- docs/gameobject_template.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cn/gameobject_template.md b/docs/cn/gameobject_template.md index b9ae522c6..58b7c5e52 100644 --- a/docs/cn/gameobject_template.md +++ b/docs/cn/gameobject_template.md @@ -250,7 +250,7 @@ data 字段的内容取决于[游戏对象类型](#type) **GAMEOBJECT\_TYPE\_SPELL\_FOCUS = 8** - data0: spellFocusType(来自 SpellFocusObject.dbc;该值也会作为 RequiresSpellFocus 出现在 [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell) 中) -- data1: diameter(即半径\*2) +- data1: radius(单位为码,另加施法者和焦点的体积) - data2: linkedTrap([gameobject\_template.entry](#entry)(生成的 GO 类型 6)) - data3: serverOnly?(始终为 0) - data4: questID(需要处于激活状态的 [quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id) 才能生效) diff --git a/docs/es/gameobject_template.md b/docs/es/gameobject_template.md index 1d7b08057..ef244ce48 100644 --- a/docs/es/gameobject_template.md +++ b/docs/es/gameobject_template.md @@ -250,7 +250,7 @@ Tipo de objeto sin usar **GAMEOBJECT\_TYPE\_SPELL\_FOCUS = 8** - data0: spellFocusType (de SpellFocusObject.dbc; el valor también aparece como RequiresSpellFocus en [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell)) -- data1: radius (en yardas: el hechizo se puede lanzar dentro de esta distancia del foco) +- data1: radius (en yardas, más el tamaño del lanzador y del foco) - data2: linkedTrap ([gameobject\_template.entry](#entry) (GO generado de tipo 6)) - data3: serverOnly? (Siempre 0) - data4: questID (requiere una [quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id) activa para funcionar) diff --git a/docs/gameobject_template.md b/docs/gameobject_template.md index 23757c1bc..0396cbd2d 100644 --- a/docs/gameobject_template.md +++ b/docs/gameobject_template.md @@ -250,7 +250,7 @@ Object type not used **GAMEOBJECT\_TYPE\_SPELL\_FOCUS = 8** - data0: spellFocusType (from SpellFocusObject.dbc; value also appears as RequiresSpellFocus in [Spell.dbc](https://trinitycore.atlassian.net/wiki/display/tc/Spell)) -- data1: radius (in yards: the spell can be cast within this distance of the focus) +- data1: radius (in yards, plus the caster and focus sizes) - data2: linkedTrap ([gameobject\_template.entry](#entry) (Spawned GO type 6)) - data3: serverOnly? (Always 0) - data4: questID (Required active [quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id) to work)