Last active
October 5, 2015 21:14
-
-
Save callmephil/80c6aa6322effd2db197 to your computer and use it in GitHub Desktop.
spell tracelog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp | |
index 768b290..9915fea 100644 | |
--- a/src/server/game/Spells/Spell.cpp | |
+++ b/src/server/game/Spells/Spell.cpp | |
@@ -3690,6 +3690,11 @@ void Spell::cast(bool skipCheck) | |
} | |
} | |
+ if (Player* playercast = m_caster->ToPlayer()) | |
+ if ((playercast->IsAlive() && playercast->IsInCombat()) && player->GetMap()->IsBattlegroundOrArena()) | |
+ if (playercast->GetMap() == 800){ | |
+ TC_LOG_WARDEN("LOG_FILTER_NETWORKIO", "Spell Casted %u by the player %s", m_spellInfo->Id, playercast->GetName().c_str()); | |
+ TC_LOG_WARDEN("LOG_FILTER_WARDEN", "Spell Casted %u by the player %s", m_spellInfo->Id, playercast->GetName().c_str()); | |
+ } | |
+ | |
SetExecutedCurrently(false); | |
} | |
@@ -7549,6 +7554,11 @@ void Spell::DoAllEffectOnLaunchTarget(TargetInfo& targetInfo, float* multiplier) | |
if (!unit) | |
return; | |
+ if (Player* playercast = unit->ToPlayer()) | |
+ if ((playercast->IsAlive() && playercast->IsInCombat()) && player->GetMap()->IsBattlegroundOrArena()) | |
+ if (playercast->GetMap() == 800){ | |
+ TC_LOG_WARDEN("LOG_FILTER_NETWORKIO", "Auras Casted %u by the player %s", m_spellInfo->Id, playercast->GetName().c_str()); | |
+ TC_LOG_WARDEN("LOG_FILTER_WARDEN", "Auras Casted %u by the player %s", m_spellInfo->Id, playercast->GetName().c_str()); | |
+ } | |
+ | |
for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i) | |
{ | |
if (targetInfo.effectMask & (1<<i)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment