Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetEclipseDirection

Last wiki revision 2022-08-01

Indicates which Eclipse state the player is moving towards. direction = GetEclipseDirection

  • direction
  • String - which Eclipse state the player is moving towards:
  • "moon"
  • "sun"
  • "none"

local direction = GetEclipseDirection if direction == "moon" then DEFAULT_CHAT_FRAME:AddMessage("Cast Nature spells to move toward a Lunar eclipse!") elseif direction == "sun" then DEFAULT_CHAT_FRAME:AddMessage("Cast Arcane spells to move toward a Solar eclipse!") end

Adds a message to the chat frame telling the player which type of spells will move them closer to their next Eclipse state.

If the player is a Balance-specialized Druid, this function returns either "moon" or "sun". If the player is not specialized into the Balance talent tree, or is not a Druid, this function returns "none".

It is unknown at this time whether the return values from this function are localized.

Note that the return value from this function indicates which Eclipse state the player is heading toward, not which Eclipse state the player is currently in, if any.

In the game's default UI, the value returned by this function corresponds with the direction the pointer on the player's Eclipse Bar is facing.

Source

https://warcraft.wiki.gg/wiki/API_GetEclipseDirection · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.