Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index f097131..ad19f56 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -8571,15 +8571,15 @@ void Unit::SetSpeedRate(UnitMoveType mtype, float rate, bool forced)
const uint16 SetSpeed2Opc_table[MAX_MOVE_TYPE][2] =
{
- {MSG_MOVE_SET_WALK_SPEED, SMSG_FORCE_WALK_SPEED_CHANGE},
- {MSG_MOVE_SET_RUN_SPEED, SMSG_FORCE_RUN_SPEED_CHANGE},
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index f097131..6a382c5 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -8569,33 +8569,56 @@ void Unit::SetSpeedRate(UnitMoveType mtype, float rate, bool forced)
m_speed_rate[mtype] = rate;
propagateSpeedChange();
- const uint16 SetSpeed2Opc_table[MAX_MOVE_TYPE][2] =
- {
@cyberium
cyberium / gist:3275f8a531129b6b1d14
Last active November 4, 2015 20:54
ignore /script from chat messages
diff --git a/src/game/ChatHandler.cpp b/src/game/ChatHandler.cpp
index 3bda8d9..c8715c9 100644
--- a/src/game/ChatHandler.cpp
+++ b/src/game/ChatHandler.cpp
@@ -53,6 +53,22 @@ bool WorldSession::processChatmessageFurtherAfterSecurityChecks(std::string& msg
KickPlayer();
return false;
}
+
+ // check if the message start with /script wish is not permitted in any case
void Unit::RemoveAurasOnCast(SpellEntry const* castedSpellEntry)
{
for (SpellAuraHolderMap::iterator iter = m_spellAuraHolders.begin(); iter != m_spellAuraHolders.end();)
{
SpellAuraHolder* holder = iter->second;
SpellEntry const* spellEntry = holder->GetSpellProto();
bool removeThisHolder = false;
if (spellEntry->AuraInterruptFlags & AURA_INTERRUPT_FLAG_UNK2)
{
From 4cc97f57cc4baf373ee66710ffd43075b49321c7 Mon Sep 17 00:00:00 2001
From: Roux Patrick-Edouard <[email protected]>
Date: Fri, 1 Sep 2017 21:27:34 +0200
Subject: [PATCH] [SpellAura] Dose flame touched aura on flame sear
Flame sear dots should add stacks of Flame Touched debuff every second.
---
.../sunwell_plateau/boss_eredar_twins.cpp | 63 ++++------------------
src/game/Spells/UnitAuraProcHandler.cpp | 49 +++++++++++++++--
2 files changed, 55 insertions(+), 57 deletions(-)