mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-18 01:34:33 +00:00
fix(Core/Vmaps): Stop M2s from occluding for spellcast LoS. Original autho… (#11341)
* Core/Vmaps: Stop M2s from occluding for spellcast LoS. Original authors: @Shauren & @HelloKitty Fixes #11293 * buildfix. Co-Authored-By: HelloKitty <5829095+HelloKitty@users.noreply.github.com>
This commit is contained in:
@@ -647,6 +647,25 @@ struct GameObjectTemplate
|
||||
{
|
||||
return IsForQuests;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool IsIgnoringLOSChecks() const
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case GAMEOBJECT_TYPE_BUTTON:
|
||||
return button.losOK == 0;
|
||||
case GAMEOBJECT_TYPE_QUESTGIVER:
|
||||
return questgiver.losOK == 0;
|
||||
case GAMEOBJECT_TYPE_CHEST:
|
||||
return chest.losOK == 0;
|
||||
case GAMEOBJECT_TYPE_GOOBER:
|
||||
return goober.losOK == 0;
|
||||
case GAMEOBJECT_TYPE_FLAGSTAND:
|
||||
return flagstand.losOK == 0;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// From `gameobject_template_addon`
|
||||
|
||||
Reference in New Issue
Block a user