Skip to content

Instantly share code, notes, and snippets.

View benphelps's full-sized avatar
🇺🇦
Slava Ukrayini!

Ben Phelps benphelps

🇺🇦
Slava Ukrayini!
View GitHub Profile
engine.highlightSelection = function(xFrom, yFrom, xTo, yTo) {
engine.clearHighlight();
for (var x=xFrom; x < xTo; x++) {
for (var y=yFrom; y < yTo; y++) {
var posX = (x-1) * engine.tileW;
var posY = (y-1) * engine.tileH;
engine.overlayContext.beginPath();
engine.overlayContext.rect(posX, posY, engine.tileW, engine.tileH);
engine.overlayContext.fillStyle = 'rgba(0, 0, 0, 0.4)';
engine.overlayContext.fill();
/*
Phelps does JS LOL!?!?!
*/
var engine = { };
engine.context = false;
engine.tileW = 32;
engine.tileH = 32;
{
Spell {
}
Spell -> target {
}
-- rules?!
target.range <= 20
}
<?xml version="1.0" encoding="UTF8"?>
<!DOCTYPE updater PUBLIC "peupdater" "https://probablyengine.com/peupdater.dtd">
<updater>
<!-- Rotation Metadata -->
<classID></classID>
<name></name>
<url></url>
<version></version>
Copyright (c) 2014, <Name>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
{ "Avenger's Shield", {
"modifier.interrupts",
"!modifier.last(Rebuke)"
}}
{ "Avenger's Shield", {
"modifier.interrupts",
"!modifier.last(Arcane Torrent)"
}}
Spell -> target {
target.rule > 5 > 2 = true
}
-- Buffs
Windfury Weapon {
player.enchant.mainhand
}
Flametongue Weapon {
!player.enchant.offhand
}
Lightning Shield {
!player.buff(Lightning Shield)
}
Spell -> focus {
condition.value <= 50
}
local mavminsLib = { }
mavminsLib.inT15checked = nil
mavminsLib.inT15 = function(count)
if mavminsLib.inT15checked then
return mavminsLib.inT15checked >= count
end
local EnhanceT15 = {
96691, -- Head Heroic
96693, -- Shoulders Heroic