mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8529] check rune cost only if spell has PowerType == POWER_RUNE. Patch provided by yavi.
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
d482660177
commit
a202347079
2 changed files with 8 additions and 4 deletions
|
|
@ -5091,9 +5091,13 @@ SpellCastResult Spell::CheckPower()
|
||||||
return SPELL_FAILED_UNKNOWN;
|
return SPELL_FAILED_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
SpellCastResult failReason = CheckRuneCost(m_spellInfo->runeCostID);
|
//check rune cost only if a spell has PowerType == POWER_RUNE
|
||||||
if(failReason != SPELL_CAST_OK)
|
if(m_spellInfo->powerType == POWER_RUNE)
|
||||||
return failReason;
|
{
|
||||||
|
SpellCastResult failReason = CheckRuneCost(m_spellInfo->runeCostID);
|
||||||
|
if(failReason != SPELL_CAST_OK)
|
||||||
|
return failReason;
|
||||||
|
}
|
||||||
|
|
||||||
// Check power amount
|
// Check power amount
|
||||||
Powers powerType = Powers(m_spellInfo->powerType);
|
Powers powerType = Powers(m_spellInfo->powerType);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8528"
|
#define REVISION_NR "8529"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue