Магия

**Spells** are an active component of the game mechanics that enables to boost production and cost mana.

Their duration, resource gain, mana-cost, and mana regeneration speed can be altered by getting specific Faction, Heritage, Challenge, or Research upgrades. Different aspects of the spells can also be used in other upgrades (*eg: while a spell is active, the number of spell casts, based on mana produced, etc.*).

Spells are not cast while offline, but purchasing the autocasting upgrades allow "Mana produced (This game)", the "Spells casted (This game)" and spell activity time stats to keep growing while offline, at a vastly reduced rate.

Call To Arm Spell tooltip
The trick to use spells efficiently relies on finding the best setup: Which spell combination to cast, at what timing, with which automatic-casting tool, and where to set the contingency arrow. Like for upgrades, these choices can make a crucial difference for your game progress.

In Realm Grinder, the spells can be classified in three types:

* Default spells - which are always available.
* Aligned spells - which appear when the player chooses an alignment.
* Faction spells - which appear when the player allies with a Faction.

These terms are mostly used for perk description purposes.

## Spell Upgrades

Starting from R0, these spell upgrades are obtained by unlocking the spell's trophy.

## Challenge Spell Upgrades

From R2 to R33, Challenge Spell Upgrades are given on completion of all Tier challenges of a Faction. Once obtained, and the active Faction's default spell upgrade is bought, they will be turned on by default.

## Tier Spell Upgrades (R42+)

From R42, for each spell besides tax collection, 4 tier spell upgrades becomes available. Each tier gives 1 additional spell cast, and with all tiers combined, allows to cast one spell up to 5 times simultaneously. Each Tier will require double the amount of mana as the previous one, and they do not seem to affect spell activity time, neither online nor offline.
Tier upgrade names starts with the default spell's name followed by the tier number, starting from 2 to 5. (e.g.: Holy Light 2, Holy Light 3, etc.)

Once tier spell upgrades are bought, you will need to use the Tiered Autocasting to set the amount of tier casts you wish, or else the spells will remain at tier 1.

**Note:** you only need to unlock the tiers for each spell once, but you need to buy the tiers with coins/FC at every abdication. Also note that what counts for unlocking a tier is the total time (i.e, you need roughly 10 days to unlock tiers 1-5, as opposed to 10 days of spell activity after unlocking tier 4 in order to unlock tier 5), so it's more beneficial to unlock a spell up to tier 5 whenever possible.

* Spell Active Time for tier n + 1: Шаблон:NakedFormula

Their cost is in Coins, and Faction Coins (except for Call to arms which only costs coins).
* Diamond Coins for tier n + 1: Шаблон:NakedFormula}
* Faction Coins for tier n + 1: Шаблон:NakedFormula}

## Automatic Casting

Spells can be cast by clicking the spell button, using keyboard shortcuts (hotkeys n°1-6 in visual order from top to bottom) or automated using the automatic casting tools obtainable through the upgrades listed here below.

Automatic Casting buttons in spell tool-tipsAutomatic casting can be setup by clicking on the autocast buttons inside each spell tool-tip, or by using the keyboard shortcut: Silver: CTRL+Click, Gold: SHIFT+Click, Bronze: CTRL+SHIFT+Click, Diamond: CTRL+X+Click.

Note that auto-casting *Tax Collection* should be set as last spell, if at all. As it is the cheapest and has no duration, it will use up all the mana, and never leave enough for the other spells to be cast.

## Offline Spell Casting

While offline, Spells set on autocast:

* will not be cast, instead, a generic non-specific spell will increase your "Spell Casts" entry in the stats.

* will gain "Active Time (This game)" based on their duration, cost and online mana regeneration rate.

For Spells to work offline, you need:

* **Offline Mana Regen** Upgrades (such as included in the 'Automatic auto-casting' upgrade)
* **Offline Spell Casting** Upgrades (such as included in the 'Priority Auto-casting' upgrade)

The bonuses are additional. The total bonus of all the offline auto-casting upgrades is 10 spell casts per minute and 90% of your online mana regeneration rate.

**Special cases:**

* *Tax Collection* is counted for the number of spells set to autocast but no production will be gained from it being set to autocast offline.

* If any *Brainwave* cast time remains when going offline, it will simply be continue until finished.

## See also

* Challenges - some tier challenge rewards also have spell upgrades
* Realm Weather Service Lightning Strike spell forecast tool

## Reference

1. ↑ If you have CtA tier 5 but not enough mana to cast all 5 tiers at once, the game will cast them when it can. eg: In the middle of CtA T1, it will start CtA T2, then CtA T3... and each time, the timer will get reset. All tiers combined, this results in fewer but longer casts. (which is not an advantage as you will also have longer inactivity time between the spell casts.)
2. ↑ Formula source
3. ↑ Unlock time table by cueballkev (source)
4. ↑ 4,0 4,1 To manage to click inside the spell tool-tips, the option "Enable Spell Tooltip Persist" requires to be enabled.
5. ↑ Source: offline spell activity time, its kinda weird now @kongregate forums

Шаблон:Sitenav