mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Core/GameObject): use the full spell focus radius (#27075)
Co-authored-by: Killyana <[email protected]>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--
|
||||
-- Spell focus radius is no longer halved by the core, so the inflated values that compensated for
|
||||
-- that go back to their sniffed radius.
|
||||
UPDATE `gameobject_template` SET `Data1` = 50 WHERE `entry` = 20919; -- Tuber Node
|
||||
UPDATE `gameobject_template` SET `Data1` = 50 WHERE `entry` = 184643; -- Void Conduit Spell Focus
|
||||
UPDATE `gameobject_template` SET `Data1` = 50 WHERE `entry` = 184750; -- Unguarded Summoning Site
|
||||
UPDATE `gameobject_template` SET `Data1` = 5 WHERE `entry` = 185144; -- Bleeding Hollow Forge Spell Focus
|
||||
UPDATE `gameobject_template` SET `Data1` = 50 WHERE `entry` = 190033; -- Alystros the Verdant Keeper Spell Focus
|
||||
UPDATE `gameobject_template` SET `Data1` = 5 WHERE `entry` = 190224; -- Scourge Mummy Fire
|
||||
UPDATE `gameobject_template` SET `Data1` = 10 WHERE `entry` = 190731; -- Scourgewagon
|
||||
UPDATE `gameobject_template` SET `Data1` = 5 WHERE `entry` = 192011; -- Thane Ufrang the Mighty's Spell Focus
|
||||
@@ -691,7 +691,7 @@ namespace Acore
|
||||
if (go->GetGOInfo()->spellFocus.focusId != i_focusId)
|
||||
return false;
|
||||
|
||||
float dist = (float)((go->GetGOInfo()->spellFocus.dist) / 2);
|
||||
float const dist = go->GetGOInfo()->spellFocus.dist;
|
||||
|
||||
return go->IsWithinDistInMap(i_unit, dist);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user