Fix compiler operator precedence bugs.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1442 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Dynamically calculate whether a rune is active.

This avoids having to update the "active" flag on a rune in the simulator.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1443 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Add parameter to state:RuneCount() to get rune count at a given time.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1444 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Activate runes as the proper type in the simulator.

Some specializations cause death runes to reactivate in place of consumed
runes, which needed to be modeled in the simulator.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1445 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Script conditions use death=0 or death=1, not death=none or death=any.

Support using either notation to specify the death rune condition.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1446 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Rename RuneCount() to Rune() and reimplement RuneCount() to just count.

Rune() will return fractional numbers to indicate how far along a rune is
to regenerating.  RuneCount() will always return a whole number for the
actual count of active runes of the given type.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1447 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Rudimentary translation of SimulationCraft's rune conditions.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1448 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Translate "cooldown.spell.remains=0" as "not SpellCooldown(spell) > 0".

This avoids an equality comparison, which allows for a time span to be
computed for the condition.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1449 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Add Cataclysm strength potion used by some scripts.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1450 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Add new parameter "buff_runes_none" for buffs that remove rune costs.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1451 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Fix GetRunesCooldown() calculation.

Also remove the death condition from all rune conditions.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1452 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Add parameter "excludeTarget" to conditions that scan over all targets.

BuffCountOnAny, BuffRemainsOnAny, and BuffStacksOnAny now accept a new
parameter "excludeTarget" (0 or 1) that signals whether to exclude the
current target from the scan.  This allows for checking when DoTs are
expiring on other targets and need to be spread from the current target
again.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1453 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Death Knight: Update Frost and Unholy scripts to MoP 5.4.7.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1454 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Update cooldown state on all spellcast events.

Blizzard gives spells a "GCD" cooldown while they're being cast before the
real cooldown kicks in afterwards.  Update the cooldown state on all
spellcast events to catch this "GCD" cooldown.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1455 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Monk: Simplify Brewmaster CD conditions slightly.

git-svn-id: svn+ssh://svn.curseforge.net/wow/ovale/mainline/trunk@1456 d5049fe3-3747-40f7-a4b5-f36d6801af5f