Skip to content

Instantly share code, notes, and snippets.

@Nighoo
Nighoo / gatekeeper.py
Created January 21, 2015 19:37
unlock gatekeeper
#!/usr/bin/env python2
# ~*~ coding: utf-8
import urllib, urllib2
import keyring
def getToken(ret, targetform):
start=ret.find(targetform)
begin_token=start+ret[start:].find('value=\'')+len('value=\'')
token=ret[begin_token:ret[begin_token:].find('\'')+begin_token]
@Nighoo
Nighoo / gist:3294739
Created August 8, 2012 12:22
Curing the Sick - 6124
diff --git a/scripts/world/spell_scripts.cpp b/scripts/world/spell_scripts.cpp
index 96a7257..ff00324 100644
--- a/scripts/world/spell_scripts.cpp
+++ b/scripts/world/spell_scripts.cpp
@@ -114,6 +114,7 @@ enum
// quest 6124/6129
SPELL_APPLY_SALVE = 19512,
+ SPELL_SICKLY_CRITTER_AURA = 19502,
@Nighoo
Nighoo / gist:3222061
Created August 1, 2012 00:45
Set PvP enabled on Creatures with flag
commit e13386802dbbdfc25f986b3cb092241752b1b78d
Author: Nighoo <nighoo@overninethousand.de>
Date: Tue Mar 20 21:20:51 2012 +0100
Set PvP enabled on Creatures with flag
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 90cfa9c..56a2a49 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@Nighoo
Nighoo / gist:1694390
Created January 28, 2012 14:06
Pet System, self damage
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 76ab5d9..1bbbc2f 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5161,7 +5161,8 @@ void Unit::AttackedBy(Unit* attacker)
// trigger pet AI reaction
if (Pet* pet = GetPet())
- pet->AttackedBy(attacker);
+ if (this != attacker)
@Nighoo
Nighoo / gist:1646313
Created January 20, 2012 09:13
dont stack lacerate and moonfire
From 5f8cfba36f9c4a5bcd4e0ae56e0658341346461d Mon Sep 17 00:00:00 2001
From: Nighoo <nighoo@gmail.com>
Date: Sat, 9 Apr 2011 20:26:32 +0200
Subject: dont stack lacerate and moonfire
---
src/game/SpellMgr.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
@Nighoo
Nighoo / gist:1475976
Created December 14, 2011 10:07
mangos_one diminishing returns cleanup (original author vovk)
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 367cd32..19ece1b 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -3790,26 +3790,25 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
// Kidney Shot
if (spellproto->IsFitToFamilyMask(UI64LIT(0x00000200000)))
return DIMINISHING_KIDNEYSHOT;
+ // Gouge
+ else if (spellproto->IsFitToFamilyMask(UI64LIT(0x00000000008)))
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 792345f..a849ffb 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -285,7 +285,11 @@ BattleGround::~BattleGround()
DelObject(i);
sBattleGroundMgr.RemoveBattleGround(GetInstanceID(), GetTypeID());
- sBattleGroundMgr.DeleteClientVisibleInstanceId(GetTypeID(), GetBracketId(), GetClientInstanceID());
+