Skip to content

Instantly share code, notes, and snippets.

@@ -432,11 +432,12 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster, int32 const* bp, Unit const
float basePointsPerLevel = RealPointsPerLevel;
int32 basePoints = bp ? *bp : BasePoints;
float comboDamage = PointsPerComboPoint;
// base amount modification based on spell lvl vs caster lvl
- if (ScalingMultiplier != 0.0f)
+ // Do not perform any scaling calculation if custom values were passed to us
+ if (ScalingMultiplier != 0.0f && !bp)
{
@Warpten
Warpten / gist:5543530
Last active December 17, 2015 03:29
MultiLayerCanvas
function Layer(width, height) {
this.width = width;
this.height = height;
this.canvas = document.createElement("canvas");
this.context = this.canvas.getContext("2d");
this.canvas.width = width;
this.canvas.height = height;
this.getCanvas = function() { return this.canvas; };
@Warpten
Warpten / gist:3806260
Created September 30, 2012 08:37
Le crash
User@USER-PC /c/Repositories/Sniffs
$ WowPacketParser.exe ruby_sanctum.bin
Loading DB...
Connecting to MySQL server: Server=localhost;Port=3306;Username=root;Database=wpp;CharSet=utf8;ConnectionTimeout=5;
Finished loading DB in 00:00:00.324.
[1/1 ruby_sanctum.bin]: Reading packets...
[1/1 ruby_sanctum.bin]: Parsing 354083 packets. Assumed version V3_3_5a_12340
Processing... 100% complete
@Warpten
Warpten / board.js
Created July 8, 2012 21:14
Chess over Internet Draft v0.5
(function () {
var Game = (function() {
var Game = function() {
return new Game.fn.init();
};
Game.fn = Game.prototype = {
constructor: Game,
isVerbose: function() { return this._verbose; },
@Warpten
Warpten / board.js
Created July 8, 2012 20:53
Chess over Internet sketch 0.1
(function () {
var Game = (function() {
var Game = function(domElem) {
var objInstance = new Game.fn.init(domElem);
// Append click handler
$(domElem).click(function(eventData) {
Game.fn.onClick(eventData.pageX, eventData.pageY, objInstance);
});