aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp6
-rw-r--r--src/game/SpellMgr.cpp5
-rw-r--r--src/game/WorldSession.cpp2
3 files changed, 8 insertions, 5 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 0027d0b3f68..600d9a27cf1 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1950,6 +1950,12 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if(roll_chance_i(20)) // backfire stun
m_target->CastSpell(m_target, 51581, true, NULL, this);
return;
+ case 43873: // Headless Horseman Laugh
+ if(caster->GetTypeId() == TYPEID_PLAYER)
+ {
+ ((Player*)caster)->PlaySound(11965, false);
+ }
+ return;
case 46354: // Blood Elf Illusion
if(caster)
{
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index f398f224286..02ff2395c1e 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -742,8 +742,6 @@ void SpellMgr::LoadSpellAffects()
sLog.outString();
sLog.outString( ">> Loaded %u spell affect definitions", count );
- /*
- // Commented for now, as it still produces many errors (still quite many spells miss spell_affect)
for (uint32 id = 0; id < sSpellStore.GetNumRows(); ++id)
{
SpellEntry const* spellInfo = sSpellStore.LookupEntry(id);
@@ -764,10 +762,9 @@ void SpellMgr::LoadSpellAffects()
if(mSpellAffectMap.find((id<<8) + effectId) != mSpellAffectMap.end())
continue;
- sLog.outErrorDb("Spell %u (%s) misses spell_affect for effect %u",id,spellInfo->SpellName[sWorld.GetDBClang()], effectId);
+ sLog.outErrorDb("Spell %u (%s) misses spell_affect for effect %u",id,spellInfo->SpellName[sWorld.GetDefaultDbcLocale()], effectId);
}
}
- */
}
bool SpellMgr::IsAffectedBySpell(SpellEntry const *spellInfo, uint32 spellId, uint8 effectId, uint64 familyFlags) const
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp
index 3123544efaf..fe605df17ab 100644
--- a/src/game/WorldSession.cpp
+++ b/src/game/WorldSession.cpp
@@ -453,7 +453,7 @@ void WorldSession::SendNotification(int32 string_id,...)
va_list ap;
char szStr [1024];
szStr[0] = '\0';
- va_start(ap, format);
+ va_start(ap, string_id);
vsnprintf( szStr, 1024, format, ap );
va_end(ap);