Jump to content

Missing Function For Honor Spells


Recommended Posts

  • 38 years later...

From SpellEffects.cpp:

void Spell::EffectAddHonor(uint32 /*i*/)
{
       if(unitTarget->GetTypeId() != TYPEID_PLAYER)
               return;

       sLog.outDebug("SpellEffect::AddHonor called for spell_id %u , that rewards %d honor points to player: %u", m_spellInfo->Id, this->damage, ((Player*)unitTarget)->GetGUIDLow());

       // TODO: find formula for honor reward based on player's level!

       // now fixed only for level 70 players:
       if (((Player*)unitTarget)->getLevel() == 70)
               ((Player*)unitTarget)->RewardHonor(NULL, 1, this->damage);
}

As you can see, it only works if it is used on a player and the player's level is 70.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use