Skip to content

Commit

Permalink
[10691] Add dummy effect of spell 53475, 53487 and 54015
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Nov 7, 2010
1 parent 395f8f1 commit 6faf865
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,38 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
m_caster->CastSpell(m_caster, 54586, true);
return;
}
case 53475: // Set Oracle Faction Friendly
case 53487: // Set Wolvar Faction Honored
case 54015: // Set Oracle Faction Honored
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)
return;

switch(eff_idx)
{
case EFFECT_INDEX_0:
{
Player* pPlayer = (Player*)m_caster;

uint32 faction_id = m_currentBasePoints[eff_idx];
int32 rep_change = m_currentBasePoints[EFFECT_INDEX_1];

FactionEntry const* factionEntry = sFactionStore.LookupEntry(faction_id);

if (!factionEntry)
return;

// set rep to baserep + basepoints (expecting spillover for oposite faction -> become hated)
pPlayer->GetReputationMgr().SetReputation(factionEntry, rep_change);
break;
}
case EFFECT_INDEX_2:
// unclear what this effect is for.
break;
}

return;
}
case 53808: // Pygmy Oil
{
const uint32 spellShrink = 53805;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10690"
#define REVISION_NR "10691"
#endif // __REVISION_NR_H__

0 comments on commit 6faf865

Please sign in to comment.