Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var previousEntryUID = null, difference = null;
- for (var entryUID in combatLog.entries) {
- if (combatLog.entries.hasOwnProperty(entryUID)) {
- if (previousEntryUID === null) {
- previousEntryUID = entryUID;
- } else {
- var difference = combatLog.entries[entryUID][1] - combatLog.entries[previousEntryUID][1],
- previousSpell = combatLog.spells[combatLog.events[combatLog.entries[previousEntryUID][4]].spell],
- currentSpell = combatLog.spells[combatLog.events[combatLog.entries[entryUID][4]].spell],
- previousEntryTime = new Date(report.startTime + combatLog.entries[previousEntryUID][1]),
- currentEntryTime = new Date(report.startTime + combatLog.entries[entryUID][1]),
- previousEntryTimeParsed = null, currentEntryTimeParsed = null;
- if (difference <= 950 // Reduced from 1000 to account for lag
- && previousSpell.id !== 16166 // Elemental Mastery
- && (previousSpell.id !== 77762 && currentSpell.id !== 77762) // Lava Surge! (Shuld this be both ways?)
- && (previousSpell.id !== 79476 && currentSpell.id !== 79476) // Volcanic Power
- && (previousSpell.id !== 82174 && currentSpell.id !== 82174) // Synapse Springs
- && (previousSpell.id !== 92601) // Detonate Mana
- && (previousSpell.id !== 3045 && currentSpell.id !== 3045) // Rapid Fire
- && (previousSpell.id !== 5405) // Replensih Mana
- && (previousSpell.id !== 7268 && currentSpell.id !== 7268) // Arcane Missiles (Can't get an accurate minimum time, it's 5 casts within the main spells time which is 2s base)
- && (previousSpell.id !== 12043) // Presence of Mind
- && (previousSpell.id !== 12042) // Arcane Power
- && (previousSpell.id !== 59548 && previousSpell.id !== 59548) // Gift of the Naaru
- && (previousSpell.id !== 59542 && currentSpell.id !== 59542) // Gift of the Naaru
- && (previousSpell.id !== 86150 && currentSpell.id !== 86150) // Guardian of Ancient Kings
- && (previousSpell.id !== 31884 && currentSpell.id !== 31884) // Avenging Wrath
- && (previousSpell.id !== 82186 && currentSpell.id !== 82186) // Z50 Mana Gulper
- && (previousSpell.id !== 98057 && currentSpell.id !== 98057) // Grand Crusader
- && (previousSpell.id !== 20925 && currentSpell.id !== 20925) // Holy Shield
- && (previousSpell.id !== 101492) // Summon Splashing Waters
- && (previousSpell.id !== 92213) // Memory of Invincibility
- && (previousSpell.id !== 74434) // Soulburn
- && (previousSpell.id !== 74497) // Lifeblood
- && (previousSpell.id !== 91041) // Heart's Judgement
- && (previousSpell.id !== 77801) // Demon Soul
- && (previousSpell.id !== 498 && currentSpell.id !== 498) // Divine Protection
- && (previousSpell.id !== 70940 && currentSpell.id !== 70940) // Divine Guardian
- && (previousSpell.id !== 633 && currentSpell.id !== 633) // Lay on Hands
- && (previousSpell.id !== 79105 && currentSpell.id !== 79105) // Power Word: Fortitude
- && (previousSpell.id !== 79107 && currentSpell.id !== 79107) // Shadow Protection
- && (previousSpell.id !== 24907 && currentSpell.id !== 24907) // Moonkin Aura
- && (previousSpell.id !== 79061 && currentSpell.id !== 79061) // Mark of the Wild
- && (previousSpell.id !== 91173 && currentSpell.id !== 91173) // Clerity
- && (previousSpell.id !== 55342) // Mirror Image
- && (previousSpell.id !== 17116) // Nature's Swiftness
- && (previousSpell.id !== 96891 && currentSpell.id !== 96891) // Lightening Bolt
- && (previousSpell.id !== 82739 && currentSpell.id !== 82739) // Flame Orb (Aoe)
- && (previousSpell.id !== 97007 && currentSpell.id !== 97007) // Mark of the Firelord
- && (previousSpell.id !== 22812 && currentSpell.id !== 22812) // Barkskin
- && (previousSpell.id !== 87151) // Archangel
- && (previousSpell.id !== 75 && currentSpell.id !== 75) // Auto Shot
- && (previousSpell.id !== 63468 && currentSpell.id !== 63468) // Piercing Shots
- && (previousSpell.id !== 63468 && currentSpell.id !== 63468) //
- ) {
- previousEntryTimeParsed = previousEntryTime.getHours() + ":" + previousEntryTime.getMinutes() + ":" + previousEntryTime.getSeconds() + "." + previousEntryTime.getMilliseconds();
- currentEntryTimeParsed = currentEntryTime.getHours() + ":" + currentEntryTime.getMinutes() + ":" + currentEntryTime.getSeconds() + "." + currentEntryTime.getMilliseconds();
- console.log("[" + previousEntryTimeParsed + "] " + previousSpell.name + " (" + previousSpell.id + ") to [" + currentEntryTimeParsed + "] " + currentSpell.name + " (" + currentSpell.id + "): " + difference + " ms");
- }
- previousEntryUID = entryUID;
- }
- }
- }
Add Comment
Please, Sign In to add comment