User:Irismus/SandboxPage

Buildings are a type of unit that is not controlled by any player. At the beginning of each game, a set of buildings spawn at set locations for both teams. Both factions have the same set of buildings, with only their appearance differing from each other. Buildings take mostly defensive roles and are the main objective of the game.

All buildings have the same base properties. They are immune to most abilities and can be only affected by a few abilities. They are and immobile.

When destroyed, some buildings grant a team bounty, and some grant bounty to the player who made the last hit. A building with less than % of its max health can be denied, to reduce or prevent the enemy team from obtaining gold bounties. However, only the Ancients cannot be denied.

Buildings do not grant experience. Once destroyed, a building is permanently lost and does not respawn.

There are a total of 29 buildings for each faction.

Backdoor Protection


Backdoor Protection is a passive ability almost all buildings have. The only exception to this are Outposts and Fountains. The illusion attack damage reduction of is independent of 's illusion damage reduction.

While active, Backdoor Protection reduces the incoming damage received while healing the building based on the damage dealt by enemy units, making them difficult to destroy. The ability deactivates itself when an enemy lane creep moves within the deactivation radius, Dominated creeps do not deactivate this ability. Once deactivated, Backdoor Protection takes some time for the ability to activate again. It is also important to note that Backdoor Protection is not responsible for the innate invulnerability buildings have before the lower tier tower preceding it in its lane is destroyed.

There are currently four areas that deactivate Backdoor Protection, and each of them functions independently of the other.

The Ancient has a deactivation radius, granting Backdoor Protection to all buildings inside the base, excluding the Fountain.

Each has its deactivation radius. When one of them is disabled, the others are not. The Tier 2 Towers' Backdoor Protection is also independent of the Ancients' Backdoor Protection.

Backdoor protection is not responsible for the invulnerability buildings have, so the buildings still stay invulnerable if their corresponding towers are not destroyed first.

Towers
Towers are the main line of defense for both factions, attacking any non-neutral enemy unit that gets within their range. Both factions have all three lanes guarded by three towers each.

Additionally, each faction's Ancient has two towers as well, resulting in a total of 11 towers per faction. Towers come in 4 different tiers:
 * : located at the end of each lane.
 * : located halfway through each lane.
 * : located on top of the 3 ramps at each base.
 * : located in pairs in front of each Ancient.

All Towers have an innate invulnerability before the lower tier tower preceding it in its lane is destroyed. are invulnerable before the game begins. Barracks do not have to be destroyed to make vulnerable. Both Tier 4 Towers must be destroyed to remove the Ancient's invulnerability.

Towers of all tiers have the same following attributes:
 * Have within  radius.
 * Have 0 health regeneration.
 * Have a  daytime vision range.
 * Have a  attack range and  projectile speed.

Tier Difference (Towers)
The different attributes per Tier are listed as below: {| class="wikitable mw-datatable" style="width:100%; text-align:center;" ! class="header" width="5%" | Building ! class="header" width="10%" | Health (Deny Health) ! class="header" width="10%" | Armor ! class="header" width="10%" | Attack Damage ! class="header" width="10%" | ! class="header" width="10%" | Vision Range
 * ‒ ( DPS)
 * }
 * ‒ ( DPS)
 * }
 * ‒ ( DPS)
 * }
 * }
 * }
 * }

Attack Priority
All Tower attacks use the same mechanic as auto-attacks unless is active. When multiple enemy units engage the tower, it naturally targets the first enemy within its attack range and stops attacking the target when the attacked unit is dead, getting out of its attack range or the unit becomes attack immune.

Once that happens, the tower has the following priority when choosing its next target:
 * 1) Closest enemy unit attacking the tower itself
 * 2) Closest enemy unit attacking an ally of the tower
 * 3) Closest enemy unit
 * 4) Wards
 * 1) Wards

All units are treated equally regardless of their unit type. Siege Creeps and wards have the lowest attack priority and are always attacked last. If a tower attacks one of these units, and then another unit or hero comes within range, the tower immediately switches to the new unit. Siege Creeps have a higher priority than Wards.

There are also two additional scenarios where the tower switches its attack target immediately:

The tower switches to the enemy hero upon the enemy's attack order on an ally hero within 500 radius of the tower. This only works against regular attacks of enemy heroes and does not require the attack to finish or complete (i.e. dealing its attack damage on the ally hero). Neither considers instant attacks nor manual casting active attack modifiers as an attack for this scenario.

On the other side, if the currently targeted enemy unit is ordered to attack its ally, the tower immediately switches its attack priority to another unit, using the aforementioned priority above. Enemies can de-aggro the tower only once every 2.5 seconds by using this technique. If the tower has already started its attack on a unit, it will finish that attack regardless. It is impossible to cancel the tower's attacks by changing its aggro. The attacks can only be canceled when its current target cannot be attacked anymore.

Both scenarios above are akin to the lane creeps' behavior, which triggers the same attack priority.

Towers grant a gold bounty to whoever makes the last hit, but also grant a team bounty to the entire team. When denied, both team get half the team bounty. {| class = "wikitable" style="width:70%; text-align:center; white-space:nowrap;" ! class = "header" width="10%" | Building ! class = "header" width="10%" colspan="2" | Team Bounty ! class = "header" width="10%" colspan="2" | Deny Bounty ! class = "header" width="10%" colspan="2" | Last Hit Bounty ! class = "header" width="10%" colspan="2" | Last Hit Total ! class = "header" width="10%" colspan="2" | No Last Hit Total ! class = "header" width="10%" colspan="2" | Denied Total ! ! Regular ! Turbo ! Regular ! Turbo ! Regular ! Turbo ! Regular ! Turbo ! Regular ! Turbo ! Regular ! Turbo
 * }
 * }

Barracks


Barracks (commonly shortened to Rax or Racks) are buildings, defended by their tier 3 towers, that are responsible for keeping lane creeps as powerful as their counterparts. There are two Barracks for each lane per faction - one for melee creeps (called Melee Barracks or Melee Rax), and one for ranged creeps (called Ranged Barracks or Ranged Rax). The ranged barracks are always located to the left of the melee barracks on each lane and both factions.

Barracks are invulnerable until the tier 3 tower guarding them is destroyed. The loss of barracks does not stop lane creeps from spawning. However, destroying Barracks grants the destroying team super creeps in that lane, corresponding to which one was destroyed, which are more powerful and grant less bounties than regular creeps. Super melee creeps spawn when the melee barracks get destroyed, while super ranged creeps spawn when the ranged barracks are destroyed. When all 6 Barracks of a team are destroyed, mega creeps start spawning on every lane for the enemy, even more powerful than super creeps.

All barracks have a vision range of during the day and  during the night. They cannot attack, have no special abilities and have no True Sight.

Barracks grant a gold bounty to whoever makes the last hit, but also grant a team bounty to the entire team. Denying Barracks does not reduce the team bounty.

Ancients
Ancients (also commonly refered to as Thrones, or Tree for Radiant's ancient and Throne for Dire's ancient, as legacy names from DotA) are massive structures found inside each faction's base and are the main objective. In order to win, the enemy team's Ancient must be destroyed, while the own one must be kept alive. Ancients are guarded by their two tier 4 towers. The Ancients are invulnerable until both of their tier 4 towers are destroyed.

Both ancients have a vision range of during the day and  during the night. Additionally, they have True Sight in a area around them.

Fountains
Fountains are buildings located in the respawn areas of both bases, and provide scaling health and mana regeneration to all allied units near it. They also greatly defend the spawn area, blasting intruding enemies with very rapid high-damaging attacks, which grow stronger with each blow, have 25% accuracy, dispel consumables, and disable Blink Dagger, Heart of Tarrasque and other abilities that are normally disabled by player-based damage. Fountains use the same attack priority system as towers, except that they cannot be aggroed immediately by attacking an enemy hero. Fountains are permanently invulnerable, so they can never be destroyed.

Both fountains have a vision range of during the day and  during the night and can attack. Additionally, they have True Sight in a area around them.

Effigy Buildings
In addition to the above buildings, there are other buildings that act as buffers within a base, called Effigy Buildings, or Filler Buildings (although they are just named Building in-game). These buildings exist only to occupy enemy creeps before reaching the tier 4 towers or the Ancient, and therefore give the defending players more time to act. There are 7 such buildings in each base, spread evenly around the Ancient.

Five of the seven Effigy buildings (the 5 forming a half-circle around the Ancient) are customizable with Effigy Blocks, giving them a different look and making them display a text notification when destroyed. This has purely cosmetical values and does not alter them in other ways. Each player can customize one of the five Effigy Buildings in their base.

All effigy buildings have a vision range of during the day and  during the night. They cannot attack, have no special abilities and have no True Sight.

Radiant's buildings have two different models, while the Dire have one model for all.

Outposts
Outposts are buildings located within the primary jungles of both teams, close to the small neutral creep camps on the highground - West from the camp in the Radiant jungle and East from the camp in the Dire jungle. Outposts start out belonging to the team on their side, and can be captured by the enemy after destroying a tier 2 tower. Taking back a stolen outpost can be done without having to destroy an enemy tier 2 tower.

Outposts have a ground vision range of during the day and  during the night. Additionally, they have True Sight in a area around them. The vision and True Sight are only granted to the controlling team. Holding ALT displays the vision range, regardless of which team the outpost belongs to. The outposts are always visible through the fog of war, no matter whom they belong to, so capturing them can be easily noticed by the other team, as its animations are visible, and the sound is audible. When under control, outposts can be teleported to with and, although with a lower teleport radius and a longer channeling time. Losing control of an outpost while channeling a teleport does not cancel the channeling.

Although attackable by non-hero units, and targetable by spells that affect buildings, outposts cannot be damaged at all, so they are undestroyable.

True Sight
Towers, Ancients and fountains, all have True Sight, the ability to detect nearby invisible enemy units. The radius' are different for between them.

Glyph of Fortification
The Glyph of Fortification (or Glyph in short) is an ability usable by any player that causes all friendly buildings and lane creeps to become impervious to damage for a short duration, while also granting tier 2 and higher towers a multishot attack, allowing them to attack multiple enemies at the same time. The effect has a rather low duration and very high cooldown, making the timing of usage very important. The Glyph is used strategically to stop enemy pushes or slow them down long enough to organize a defense. It may also be used offensively to secure a push by granting the creep waves damage immunity at the right time, or even for finishing enemies off by using the multishot attacks.

The Glyph of Fortification can be activated by any player with a button at the right of the minimap or the shortcut they defined in the settings. The Glyph's cooldown is shared by the entire team, meaning if one player uses it, it goes on cooldown for all players of the team. However, the Glyph's cooldown gets refreshed one second after losing the first tier 1, tier 2, and tier 3 towers.

Glyph Trivia

 * In DotA, Glyph grants friendly buildings spell immunity and +9999 armor, instead of 100% damage resistance like in Dota 2.
 * This means physical attacks still did 1 damage to them, since 100% physical damage resistance cannot be achieved with just armor, and the game rounds damage numbers to full numbers.
 * This also means that fortified buildings cannot be targeted by some spells which otherwise could target them.
 * In earlier versions of DotA, Glyph did not grant spell immunity, and skills such as 's could deal damage through it.

Abilities Affecting Buildings
The following abilities can target or damage buildings. Hero abilities that deal physical attack damage are reduced by as well as standard armor value reductions.