mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7583] Use instead BasePoints+1 hardcoded formula more correct BasePoint+BaseDice hide in special helper function.
This commit is contained in:
parent
ab7491e0e1
commit
f38283eba6
5 changed files with 18 additions and 14 deletions
|
|
@ -291,7 +291,7 @@ void Spell::EffectEnvirinmentalDMG(uint32 i)
|
|||
// Note: this hack with damage replace required until GO casting not implemented
|
||||
// environment damage spells already have around enemies targeting but this not help in case not existed GO casting support
|
||||
// currently each enemy selected explicitly and self cast damage, we prevent apply self casted spell bonuses/etc
|
||||
damage = m_spellInfo->EffectBasePoints[i]+m_spellInfo->EffectBaseDice[i];
|
||||
damage = m_spellInfo->CalculateSimpleValue(i);
|
||||
|
||||
m_caster->CalcAbsorbResist(m_caster,GetSpellSchoolMask(m_spellInfo), SPELL_DIRECT_DAMAGE, damage, &absorb, &resist);
|
||||
|
||||
|
|
@ -4829,8 +4829,8 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
|||
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER || effIndex!=0)
|
||||
return;
|
||||
|
||||
uint32 spellID = m_spellInfo->EffectBasePoints[0] + 1;
|
||||
uint32 questID = m_spellInfo->EffectBasePoints[1] + 1;
|
||||
uint32 spellID = m_spellInfo->CalculateSimpleValue(0);
|
||||
uint32 questID = m_spellInfo->CalculateSimpleValue(1);
|
||||
|
||||
if( ((Player*)unitTarget)->GetQuestStatus(questID) == QUEST_STATUS_COMPLETE && !((Player*)unitTarget)->GetQuestRewardStatus (questID) )
|
||||
unitTarget->CastSpell(unitTarget, spellID, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue