Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf.
This commit is contained in:
@@ -1516,7 +1516,7 @@ void AuraEffect::PeriodicTick(AuraApplication * aurApp, Unit * caster) const
|
||||
|
||||
//donator->SendSpellNonMeleeDamageLog(donator, GetId(), damage, GetSpellSchoolMask(spellProto), 0, 0, false, 0);
|
||||
caster->ModifyHealth(-(int32)damage);
|
||||
sLog->outDebug("PeriodicTick: donator %u target %u damage %u.", target->GetEntry(), target->GetEntry(), damage);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "PeriodicTick: donator %u target %u damage %u.", target->GetEntry(), target->GetEntry(), damage);
|
||||
|
||||
float gainMultiplier = SpellMgr::CalculateSpellEffectValueMultiplier(GetSpellProto(), GetEffIndex(), caster);
|
||||
|
||||
@@ -2453,7 +2453,7 @@ void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const
|
||||
{
|
||||
Unit * triggerCaster = GetTriggeredSpellCaster(triggeredSpellInfo, caster, triggerTarget);
|
||||
triggerCaster->CastSpell(triggerTarget, triggeredSpellInfo, true, NULL, this);
|
||||
sLog->outDebug("AuraEffect::TriggerSpell: Spell %u Trigger %u", GetId(), triggeredSpellInfo->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "AuraEffect::TriggerSpell: Spell %u Trigger %u", GetId(), triggeredSpellInfo->Id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -72,10 +72,10 @@ m_effectsToApply(effMask), m_removeMode(AURA_REMOVE_NONE), m_needClientUpdate(fa
|
||||
m_slot = slot;
|
||||
GetTarget()->SetVisibleAura(slot, this);
|
||||
SetNeedClientUpdate();
|
||||
sLog->outDebug("Aura: %u Effect: %d put to unit visible auras slot: %u", GetBase()->GetId(), GetEffectMask(), slot);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura: %u Effect: %d put to unit visible auras slot: %u", GetBase()->GetId(), GetEffectMask(), slot);
|
||||
}
|
||||
else
|
||||
sLog->outDebug("Aura: %u Effect: %d could not find empty unit visible slot", GetBase()->GetId(), GetEffectMask());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura: %u Effect: %d could not find empty unit visible slot", GetBase()->GetId(), GetEffectMask());
|
||||
}
|
||||
|
||||
_InitFlags(caster, effMask);
|
||||
@@ -154,7 +154,7 @@ void AuraApplication::_HandleEffect(uint8 effIndex, bool apply)
|
||||
ASSERT(aurEff);
|
||||
ASSERT(HasEffect(effIndex) == (!apply));
|
||||
ASSERT((1<<effIndex) & m_effectsToApply);
|
||||
sLog->outDebug("AuraApplication::_HandleEffect: %u, apply: %u: amount: %u", aurEff->GetAuraType(), apply, aurEff->GetAmount());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "AuraApplication::_HandleEffect: %u, apply: %u: amount: %u", aurEff->GetAuraType(), apply, aurEff->GetAmount());
|
||||
|
||||
if (apply)
|
||||
{
|
||||
@@ -190,7 +190,7 @@ void AuraApplication::ClientUpdate(bool remove)
|
||||
{
|
||||
ASSERT(!m_target->GetVisibleAura(m_slot));
|
||||
data << uint32(0);
|
||||
sLog->outDebug("Aura %u removed slot %u",GetBase()->GetId(), m_slot);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura %u removed slot %u",GetBase()->GetId(), m_slot);
|
||||
m_target->SendMessageToSet(&data, true);
|
||||
return;
|
||||
}
|
||||
@@ -1664,7 +1664,7 @@ void Aura::_DeleteRemovedApplications()
|
||||
|
||||
void Aura::LoadScripts()
|
||||
{
|
||||
sLog->outDebug("Aura::LoadScripts");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura::LoadScripts");
|
||||
sScriptMgr->CreateAuraScripts(m_spellProto->Id, m_loadedScripts);
|
||||
for(std::list<AuraScript *>::iterator itr = m_loadedScripts.begin(); itr != m_loadedScripts.end() ;)
|
||||
{
|
||||
|
||||
@@ -1565,7 +1565,7 @@ void Spell::DoTriggersOnSpellHit(Unit *unit)
|
||||
if (roll_chance_i(i->second))
|
||||
{
|
||||
m_caster->CastSpell(unit, i->first, true);
|
||||
sLog->outDebug("Spell %d triggered spell %d by SPELL_AURA_ADD_TARGET_TRIGGER aura", m_spellInfo->Id, i->first->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell %d triggered spell %d by SPELL_AURA_ADD_TARGET_TRIGGER aura", m_spellInfo->Id, i->first->Id);
|
||||
}
|
||||
if (GetSpellDuration(i->first) == -1)
|
||||
{
|
||||
@@ -1892,7 +1892,7 @@ WorldObject* Spell::SearchNearbyTarget(float range, SpellTargets TargetType, Spe
|
||||
ConditionList conditions = sConditionMgr->GetConditionsForNotGroupedEntry(CONDITION_SOURCE_TYPE_SPELL_SCRIPT_TARGET, m_spellInfo->Id);
|
||||
if (conditions.empty())
|
||||
{
|
||||
sLog->outDebug("Spell (ID: %u) (caster Entry: %u) does not have record in `conditions` for spell script target (ConditionSourceType 13)", m_spellInfo->Id, m_caster->GetEntry());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell (ID: %u) (caster Entry: %u) does not have record in `conditions` for spell script target (ConditionSourceType 13)", m_spellInfo->Id, m_caster->GetEntry());
|
||||
if (IsPositiveSpell(m_spellInfo->Id))
|
||||
return SearchNearbyTarget(range, SPELL_TARGETS_ALLY, effIndex);
|
||||
else
|
||||
@@ -2298,7 +2298,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog->outDebug("SPELL: unknown target coordinates for spell ID %u", m_spellInfo->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "SPELL: unknown target coordinates for spell ID %u", m_spellInfo->Id);
|
||||
Unit *target = NULL;
|
||||
if (uint64 guid = m_caster->GetUInt64Value(UNIT_FIELD_TARGET))
|
||||
target = ObjectAccessor::GetUnit(*m_caster, guid);
|
||||
@@ -2567,7 +2567,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
|
||||
break;
|
||||
|
||||
default:
|
||||
sLog->outDebug("Spell (ID: %u) (caster Entry: %u) does not have type CONDITION_SOURCE_TYPE_SPELL_SCRIPT_TARGET record in `conditions` table.", m_spellInfo->Id, m_caster->GetEntry());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell (ID: %u) (caster Entry: %u) does not have type CONDITION_SOURCE_TYPE_SPELL_SCRIPT_TARGET record in `conditions` table.", m_spellInfo->Id, m_caster->GetEntry());
|
||||
|
||||
if (m_spellInfo->Effect[i] == SPELL_EFFECT_TELEPORT_UNITS)
|
||||
SearchAreaTarget(unitList, radius, pushType, SPELL_TARGETS_ENTRY, 0);
|
||||
@@ -2597,7 +2597,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
|
||||
else
|
||||
{
|
||||
if (m_spellInfo->Effect[i] == SPELL_EFFECT_ACTIVATE_OBJECT)
|
||||
sLog->outDebug("Spell (ID: %u) (caster Entry: %u) with SPELL_EFFECT_ACTIVATE_OBJECT does not have type CONDITION_SOURCE_TYPE_SPELL_SCRIPT_TARGET record in `conditions` table.", m_spellInfo->Id, m_caster->GetEntry());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell (ID: %u) (caster Entry: %u) with SPELL_EFFECT_ACTIVATE_OBJECT does not have type CONDITION_SOURCE_TYPE_SPELL_SCRIPT_TARGET record in `conditions` table.", m_spellInfo->Id, m_caster->GetEntry());
|
||||
SearchGOAreaTarget(gobjectList, radius, pushType, SPELL_TARGETS_GO);
|
||||
}
|
||||
break;
|
||||
@@ -2970,7 +2970,7 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect const * triggere
|
||||
// set timer base at cast time
|
||||
ReSetTimer();
|
||||
|
||||
sLog->outDebug("Spell::prepare: spell id %u source %u caster %d triggered %u mask %u", m_spellInfo->Id, m_caster->GetEntry(), m_originalCaster ? m_originalCaster->GetEntry() : -1, m_IsTriggeredSpell ? 1 : 0, m_targets.getTargetMask());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell::prepare: spell id %u source %u caster %d triggered %u mask %u", m_spellInfo->Id, m_caster->GetEntry(), m_originalCaster ? m_originalCaster->GetEntry() : -1, m_IsTriggeredSpell ? 1 : 0, m_targets.getTargetMask());
|
||||
//if (m_targets.getUnitTarget())
|
||||
// sLog->outError("Spell::prepare: unit target %u", m_targets.getUnitTarget()->GetEntry());
|
||||
//if (m_targets.HasDst())
|
||||
@@ -3554,7 +3554,7 @@ void Spell::update(uint32 difftime)
|
||||
|
||||
if (m_targets.getUnitTargetGUID() && !m_targets.getUnitTarget())
|
||||
{
|
||||
sLog->outDebug("Spell %u is cancelled due to removal of target.", m_spellInfo->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell %u is cancelled due to removal of target.", m_spellInfo->Id);
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
@@ -3591,7 +3591,7 @@ void Spell::update(uint32 difftime)
|
||||
// check if there are alive targets left
|
||||
if (!UpdateChanneledTargetList())
|
||||
{
|
||||
sLog->outDebug("Channeled spell %d is removed due to lack of targets", m_spellInfo->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Channeled spell %d is removed due to lack of targets", m_spellInfo->Id);
|
||||
SendChannelUpdate(0);
|
||||
finish();
|
||||
}
|
||||
@@ -3683,7 +3683,7 @@ void Spell::finish(bool ok)
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(spell);
|
||||
if (spellInfo && spellInfo->SpellIconID == 2056)
|
||||
{
|
||||
sLog->outDebug("Statue %d is unsummoned in spell %d finish", m_caster->GetGUIDLow(), m_spellInfo->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Statue %d is unsummoned in spell %d finish", m_caster->GetGUIDLow(), m_spellInfo->Id);
|
||||
m_caster->setDeathState(JUST_DIED);
|
||||
return;
|
||||
}
|
||||
@@ -3818,7 +3818,7 @@ void Spell::SendSpellStart()
|
||||
if (!IsNeedSendToClient())
|
||||
return;
|
||||
|
||||
//sLog->outDebug("Sending SMSG_SPELL_START id=%u", m_spellInfo->Id);
|
||||
//sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Sending SMSG_SPELL_START id=%u", m_spellInfo->Id);
|
||||
|
||||
uint32 castFlags = CAST_FLAG_UNKNOWN_2;
|
||||
if (m_spellInfo->Attributes & SPELL_ATTR0_REQ_AMMO)
|
||||
@@ -3866,7 +3866,7 @@ void Spell::SendSpellGo()
|
||||
if (!IsNeedSendToClient())
|
||||
return;
|
||||
|
||||
//sLog->outDebug("Sending SMSG_SPELL_GO id=%u", m_spellInfo->Id);
|
||||
//sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Sending SMSG_SPELL_GO id=%u", m_spellInfo->Id);
|
||||
|
||||
uint32 castFlags = CAST_FLAG_UNKNOWN_9;
|
||||
|
||||
@@ -4644,7 +4644,7 @@ void Spell::HandleEffects(Unit *pUnitTarget,Item *pItemTarget,GameObject *pGOTar
|
||||
|
||||
uint8 eff = m_spellInfo->Effect[i];
|
||||
|
||||
sLog->outDebug("Spell: %u Effect : %u", m_spellInfo->Id, eff);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell: %u Effect : %u", m_spellInfo->Id, eff);
|
||||
|
||||
//we do not need DamageMultiplier here.
|
||||
damage = CalculateDamage(i, NULL);
|
||||
@@ -6427,7 +6427,7 @@ void Spell::DelayedChannel()
|
||||
else
|
||||
m_timer -= delaytime;
|
||||
|
||||
sLog->outDebug("Spell %u partially interrupted for %i ms, new duration: %u ms", m_spellInfo->Id, delaytime, m_timer);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell %u partially interrupted for %i ms, new duration: %u ms", m_spellInfo->Id, delaytime, m_timer);
|
||||
|
||||
for (std::list<TargetInfo>::const_iterator ihit = m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit)
|
||||
if ((*ihit).missCondition == SPELL_MISS_NONE)
|
||||
@@ -6782,7 +6782,7 @@ bool Spell::IsValidSingleTargetSpell(Unit const* target) const
|
||||
{
|
||||
if (target->GetMapId() == MAPID_INVALID)
|
||||
{
|
||||
sLog->outDebug("Spell::IsValidSingleTargetSpell - a spell was cast on '%s' (GUIDLow: %u), but they have an invalid map id!", target->GetName(), target->GetGUIDLow());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell::IsValidSingleTargetSpell - a spell was cast on '%s' (GUIDLow: %u), but they have an invalid map id!", target->GetName(), target->GetGUIDLow());
|
||||
return false;
|
||||
}
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
@@ -7190,7 +7190,7 @@ void Spell::CheckEffectExecuteData()
|
||||
|
||||
void Spell::LoadScripts()
|
||||
{
|
||||
sLog->outDebug("Spell::LoadScripts");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell::LoadScripts");
|
||||
sScriptMgr->CreateSpellScripts(m_spellInfo->Id, m_loadedScripts);
|
||||
for (std::list<SpellScript *>::iterator itr = m_loadedScripts.begin(); itr != m_loadedScripts.end() ;)
|
||||
{
|
||||
|
||||
@@ -233,7 +233,7 @@ pEffect SpellEffects[TOTAL_SPELL_EFFECTS]=
|
||||
|
||||
void Spell::EffectNULL(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
sLog->outDebug("WORLD: Spell Effect DUMMY");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "WORLD: Spell Effect DUMMY");
|
||||
}
|
||||
|
||||
void Spell::EffectUnused(SpellEffIndex /*effIndex*/)
|
||||
@@ -869,7 +869,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
Creature* creatureTarget = unitTarget->ToCreature();
|
||||
|
||||
m_caster->SummonGameObject(179644, creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(), creatureTarget->GetOrientation(), 0, 0, 0, 0, uint32(creatureTarget->GetRespawnTime()-time(NULL)));
|
||||
sLog->outDebug("SummonGameObject at SpellEfects.cpp EffectDummy for Spell 23019");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "SummonGameObject at SpellEfects.cpp EffectDummy for Spell 23019");
|
||||
|
||||
creatureTarget->DespawnOrUnsummon();
|
||||
|
||||
@@ -1550,7 +1550,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
}
|
||||
|
||||
// normal DB scripted effect
|
||||
sLog->outDebug("Spell ScriptStart spellid %u in EffectDummy(%u)", m_spellInfo->Id, effIndex);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell ScriptStart spellid %u in EffectDummy(%u)", m_spellInfo->Id, effIndex);
|
||||
m_caster->GetMap()->ScriptsStart(sSpellScripts, uint32(m_spellInfo->Id | (effIndex << 24)), m_caster, unitTarget);
|
||||
|
||||
// Script based implementation. Must be used only for not good for implementation in core spell effects
|
||||
@@ -1983,7 +1983,7 @@ void Spell::EffectTeleportUnits(SpellEffIndex /*effIndex*/)
|
||||
m_targets.m_dstPos.GetPosition(x, y, z, orientation);
|
||||
if (!orientation && m_targets.getUnitTarget())
|
||||
orientation = m_targets.getUnitTarget()->GetOrientation();
|
||||
sLog->outDebug("Spell::EffectTeleportUnits - teleport unit to %u %f %f %f %f\n", mapid, x, y, z, orientation);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell::EffectTeleportUnits - teleport unit to %u %f %f %f %f\n", mapid, x, y, z, orientation);
|
||||
|
||||
if (mapid == unitTarget->GetMapId())
|
||||
unitTarget->NearTeleportTo(x, y, z, orientation, unitTarget == m_caster);
|
||||
@@ -2113,7 +2113,7 @@ void Spell::EffectUnlearnSpecialization(SpellEffIndex effIndex)
|
||||
|
||||
_player->removeSpell(spellToUnlearn);
|
||||
|
||||
sLog->outDebug("Spell: Player %u has unlearned spell %u from NpcGUID: %u", _player->GetGUIDLow(), spellToUnlearn, m_caster->GetGUIDLow());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell: Player %u has unlearned spell %u from NpcGUID: %u", _player->GetGUIDLow(), spellToUnlearn, m_caster->GetGUIDLow());
|
||||
}
|
||||
|
||||
void Spell::EffectPowerDrain(SpellEffIndex effIndex)
|
||||
@@ -2155,7 +2155,7 @@ void Spell::EffectSendEvent(SpellEffIndex effIndex)
|
||||
/*
|
||||
we do not handle a flag dropping or clicking on flag in battleground by sendevent system
|
||||
*/
|
||||
sLog->outDebug("Spell ScriptStart %u for spellid %u in EffectSendEvent ", m_spellInfo->EffectMiscValue[effIndex], m_spellInfo->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell ScriptStart %u for spellid %u in EffectSendEvent ", m_spellInfo->EffectMiscValue[effIndex], m_spellInfo->Id);
|
||||
|
||||
Object *pTarget;
|
||||
if (focusObject)
|
||||
@@ -2363,7 +2363,7 @@ void Spell::EffectHealthLeech(SpellEffIndex effIndex)
|
||||
if (!unitTarget || !unitTarget->isAlive() || damage < 0)
|
||||
return;
|
||||
|
||||
sLog->outDebug("HealthLeech :%i", damage);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "HealthLeech :%i", damage);
|
||||
|
||||
float healMultiplier = SpellMgr::CalculateSpellEffectValueMultiplier(m_spellInfo, effIndex, m_originalCaster, this);
|
||||
|
||||
@@ -2743,7 +2743,7 @@ void Spell::SendLoot(uint64 guid, LootType loottype)
|
||||
// TODO: possible must be moved to loot release (in different from linked triggering)
|
||||
if (gameObjTarget->GetGOInfo()->chest.eventId)
|
||||
{
|
||||
sLog->outDebug("Chest ScriptStart id %u for GO %u", gameObjTarget->GetGOInfo()->chest.eventId,gameObjTarget->GetDBTableGUIDLow());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Chest ScriptStart id %u for GO %u", gameObjTarget->GetGOInfo()->chest.eventId,gameObjTarget->GetDBTableGUIDLow());
|
||||
player->GetMap()->ScriptsStart(sEventScripts, gameObjTarget->GetGOInfo()->chest.eventId, player, gameObjTarget);
|
||||
}
|
||||
|
||||
@@ -2765,7 +2765,7 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
|
||||
{
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
{
|
||||
sLog->outDebug("WORLD: Open Lock - No Player Caster!");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "WORLD: Open Lock - No Player Caster!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2820,7 +2820,7 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog->outDebug("WORLD: Open Lock - No GameObject/Item Target!");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "WORLD: Open Lock - No GameObject/Item Target!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3178,7 +3178,7 @@ void Spell::EffectLearnSpell(SpellEffIndex effIndex)
|
||||
uint32 spellToLearn = (m_spellInfo->Id == 483 || m_spellInfo->Id == 55884) ? damage : m_spellInfo->EffectTriggerSpell[effIndex];
|
||||
player->learnSpell(spellToLearn, false);
|
||||
|
||||
sLog->outDebug("Spell: Player %u has learned spell %u from NpcGUID=%u", player->GetGUIDLow(), spellToLearn, m_caster->GetGUIDLow());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell: Player %u has learned spell %u from NpcGUID=%u", player->GetGUIDLow(), spellToLearn, m_caster->GetGUIDLow());
|
||||
}
|
||||
|
||||
typedef std::list< std::pair<uint32, uint64> > DispelList;
|
||||
@@ -3438,7 +3438,7 @@ void Spell::EffectAddHonor(SpellEffIndex /*effIndex*/)
|
||||
if (m_CastItem)
|
||||
{
|
||||
unitTarget->ToPlayer()->RewardHonor(NULL, 1, damage/10);
|
||||
sLog->outDebug("SpellEffect::AddHonor (spell_id %u) rewards %d honor points (item %u) for player: %u", m_spellInfo->Id, damage/10, m_CastItem->GetEntry(),unitTarget->ToPlayer()->GetGUIDLow());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "SpellEffect::AddHonor (spell_id %u) rewards %d honor points (item %u) for player: %u", m_spellInfo->Id, damage/10, m_CastItem->GetEntry(),unitTarget->ToPlayer()->GetGUIDLow());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3447,13 +3447,13 @@ void Spell::EffectAddHonor(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
uint32 honor_reward = Trinity::Honor::hk_honor_at_level(unitTarget->getLevel(), float(damage));
|
||||
unitTarget->ToPlayer()->RewardHonor(NULL, 1, honor_reward);
|
||||
sLog->outDebug("SpellEffect::AddHonor (spell_id %u) rewards %u honor points (scale) to player: %u", m_spellInfo->Id, honor_reward, unitTarget->ToPlayer()->GetGUIDLow());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "SpellEffect::AddHonor (spell_id %u) rewards %u honor points (scale) to player: %u", m_spellInfo->Id, honor_reward, unitTarget->ToPlayer()->GetGUIDLow());
|
||||
}
|
||||
else
|
||||
{
|
||||
//maybe we have correct honor_gain in damage already
|
||||
unitTarget->ToPlayer()->RewardHonor(NULL, 1, damage);
|
||||
sLog->outDebug("SpellEffect::AddHonor (spell_id %u) rewards %u honor points (non scale) for player: %u", m_spellInfo->Id, damage, unitTarget->ToPlayer()->GetGUIDLow());
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "SpellEffect::AddHonor (spell_id %u) rewards %u honor points (non scale) for player: %u", m_spellInfo->Id, damage, unitTarget->ToPlayer()->GetGUIDLow());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5419,7 +5419,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
}
|
||||
|
||||
// normal DB scripted effect
|
||||
sLog->outDebug("Spell ScriptStart spellid %u in EffectScriptEffect(%u)", m_spellInfo->Id, effIndex);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell ScriptStart spellid %u in EffectScriptEffect(%u)", m_spellInfo->Id, effIndex);
|
||||
m_caster->GetMap()->ScriptsStart(sSpellScripts, uint32(m_spellInfo->Id | (effIndex << 24)), m_caster, unitTarget);
|
||||
}
|
||||
|
||||
@@ -5569,7 +5569,7 @@ void Spell::EffectStuck(SpellEffIndex /*effIndex*/)
|
||||
|
||||
Player* pTarget = (Player*)unitTarget;
|
||||
|
||||
sLog->outDebug("Spell Effect: Stuck");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell Effect: Stuck");
|
||||
sLog->outDetail("Player %s (guid %u) used auto-unstuck future at map %u (%f, %f, %f)", pTarget->GetName(), pTarget->GetGUIDLow(), m_caster->GetMapId(), m_caster->GetPositionX(), pTarget->GetPositionY(), pTarget->GetPositionZ());
|
||||
|
||||
if (pTarget->isInFlight())
|
||||
@@ -6557,7 +6557,7 @@ void Spell::EffectMilling(SpellEffIndex /*effIndex*/)
|
||||
|
||||
void Spell::EffectSkill(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
sLog->outDebug("WORLD: SkillEFFECT");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "WORLD: SkillEFFECT");
|
||||
}
|
||||
|
||||
/* There is currently no need for this effect. We handle it in Battleground.cpp
|
||||
@@ -6584,7 +6584,7 @@ void Spell::EffectSpiritHeal(SpellEffIndex /*effIndex*/)
|
||||
// remove insignia spell effect
|
||||
void Spell::EffectSkinPlayerCorpse(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
sLog->outDebug("Effect: SkinPlayerCorpse");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Effect: SkinPlayerCorpse");
|
||||
if ((m_caster->GetTypeId() != TYPEID_PLAYER) || (unitTarget->GetTypeId() != TYPEID_PLAYER) || (unitTarget->isAlive()))
|
||||
return;
|
||||
|
||||
@@ -6593,7 +6593,7 @@ void Spell::EffectSkinPlayerCorpse(SpellEffIndex /*effIndex*/)
|
||||
|
||||
void Spell::EffectStealBeneficialBuff(SpellEffIndex effIndex)
|
||||
{
|
||||
sLog->outDebug("Effect: StealBeneficialBuff");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Effect: StealBeneficialBuff");
|
||||
|
||||
if (!unitTarget || unitTarget == m_caster) // can't steal from self
|
||||
return;
|
||||
|
||||
@@ -400,7 +400,7 @@ uint32 CalculatePowerCost(SpellEntry const * spellInfo, Unit const * caster, Spe
|
||||
break;
|
||||
case POWER_RUNE:
|
||||
case POWER_RUNIC_POWER:
|
||||
sLog->outDebug("CalculateManaCost: Not implemented yet!");
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "CalculateManaCost: Not implemented yet!");
|
||||
break;
|
||||
default:
|
||||
sLog->outError("CalculateManaCost: Unknown power type '%d' in spell %d", spellInfo->powerType, spellInfo->Id);
|
||||
@@ -1223,7 +1223,7 @@ void SpellMgr::LoadSpellTargetPositions()
|
||||
if (found)
|
||||
{
|
||||
// if (!sSpellMgr->GetSpellTargetPosition(i))
|
||||
// sLog->outDebug("Spell (ID: %u) does not have record in `spell_target_position`", i);
|
||||
// sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Spell (ID: %u) does not have record in `spell_target_position`", i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1082,14 +1082,14 @@ class SpellMgr
|
||||
SpellDifficultyEntry const *SpellDiff = sSpellDifficultyStore.LookupEntry(SpellDiffId);
|
||||
if (!SpellDiff)
|
||||
{
|
||||
sLog->outDebug("GetSpellForDifficultyFromSpell: SpellDifficultyEntry not found for spell %u. This Should never happen.", spell->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "GetSpellForDifficultyFromSpell: SpellDifficultyEntry not found for spell %u. This Should never happen.", spell->Id);
|
||||
return spell;//return source spell
|
||||
}
|
||||
if (SpellDiff->SpellID[mode] <= 0 && mode > DUNGEON_DIFFICULTY_HEROIC)
|
||||
{
|
||||
uint8 baseMode = mode;
|
||||
mode -= 2;
|
||||
sLog->outDebug("GetSpellForDifficultyFromSpell: spell %u mode %u spell is NULL, using mode %u", spell->Id, baseMode, mode);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "GetSpellForDifficultyFromSpell: spell %u mode %u spell is NULL, using mode %u", spell->Id, baseMode, mode);
|
||||
}
|
||||
if (SpellDiff->SpellID[mode] <= 0)
|
||||
{
|
||||
@@ -1099,10 +1099,10 @@ class SpellMgr
|
||||
SpellEntry const* newSpell = sSpellStore.LookupEntry(SpellDiff->SpellID[mode]);
|
||||
if (!newSpell)
|
||||
{
|
||||
sLog->outDebug("GetSpellForDifficultyFromSpell: spell %u not found in SpellStore. Check spelldifficulty_dbc!", SpellDiff->SpellID[mode]);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "GetSpellForDifficultyFromSpell: spell %u not found in SpellStore. Check spelldifficulty_dbc!", SpellDiff->SpellID[mode]);
|
||||
return spell;
|
||||
}
|
||||
sLog->outDebug("GetSpellForDifficultyFromSpell: spellid for spell %u in mode %u is %u ", spell->Id, mode, newSpell->Id);
|
||||
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "GetSpellForDifficultyFromSpell: spellid for spell %u in mode %u is %u ", spell->Id, mode, newSpell->Id);
|
||||
return newSpell;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user