mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10691] Add dummy effect of spell 53475, 53487 and 54015
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
2b98f699b7
commit
349719e520
2 changed files with 33 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue