mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9675] Fix SPELL_DAMAGE_CLASS_NONE hit result
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
16a281c6d0
commit
b7204c9e8d
2 changed files with 5 additions and 4 deletions
|
|
@ -2992,12 +2992,13 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
|||
|
||||
switch (spell->DmgClass)
|
||||
{
|
||||
case SPELL_DAMAGE_CLASS_RANGED:
|
||||
case SPELL_DAMAGE_CLASS_MELEE:
|
||||
return MeleeSpellHitResult(pVictim, spell);
|
||||
case SPELL_DAMAGE_CLASS_NONE:
|
||||
return SPELL_MISS_NONE;
|
||||
case SPELL_DAMAGE_CLASS_MAGIC:
|
||||
return MagicSpellHitResult(pVictim, spell);
|
||||
case SPELL_DAMAGE_CLASS_MELEE:
|
||||
case SPELL_DAMAGE_CLASS_RANGED:
|
||||
return MeleeSpellHitResult(pVictim, spell);
|
||||
}
|
||||
return SPELL_MISS_NONE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9674"
|
||||
#define REVISION_NR "9675"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue