Skip to content

Instantly share code, notes, and snippets.

View Lillecarl's full-sized avatar
🦕
Dinosaurs are a lie!

Ujp8LfXBJ6wCPR Lillecarl

🦕
Dinosaurs are a lie!
View GitHub Profile
:global ConnCount0
:if ([:typeof $ConnCount0] = "nothing") do={
:set ConnCount0 0
}
:local ConnCount1 0
:foreach i in=[/interface wireless registration-table find] do={ :set ConnCount1 ($ConnCount1 + 1) }
:if ($ConnCount0 < $ConnCount1) do={
/************************************
* AnimationOnLevel *
* *
* Edit By DemonicRealms *
* *
* RealityNetGaming *
*************************************
*/
class AnimationOnLevel : public PlayerScript
@Lillecarl
Lillecarl / cs_ban.cpp
Last active January 1, 2016 18:19 — forked from zabustak/cs_ban.cpp
/*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 3ceb20b..c18d5cb 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3143,8 +3143,8 @@ void Spell::_handle_immediate_phase()
if (m_spellInfo->Effect[j] == 0)
continue;
- // apply Send Event effect to ground in case empty target lists
- if (m_spellInfo->Effect[j] == SPELL_EFFECT_SEND_EVENT && !HaveTargetsForEffect(SpellEffectIndex(j)))
@Lillecarl
Lillecarl / sha
Last active December 21, 2015 05:49 — forked from ReluctantX/sha
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "SpellAuraEffects.h"
#include "Player.h"
enum Spells
{
SPELL_CORRUPTED_FEAR = 160000,
SPELL_SHA_VOLLEY = 160001,
@Lillecarl
Lillecarl / gist:5542814
Last active December 17, 2015 03:19 — forked from anonymous/gist:5542804
#include "ScriptPCH.h"
struct Rochet2
{
uint8 icon;
std::string name;
uint32 HK, titleID;
};
// {icon, "title name", honored_kills, titleID}