mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10238] Set flag for offhand melee spells to allow proper triggering of weapon-specific effects.
This commit is contained in:
parent
a4a6a7a609
commit
c5038d2b95
2 changed files with 3 additions and 1 deletions
|
|
@ -735,6 +735,8 @@ void Spell::prepareDataForTriggerSystem()
|
|||
{
|
||||
case SPELL_DAMAGE_CLASS_MELEE:
|
||||
m_procAttacker = PROC_FLAG_SUCCESSFUL_MELEE_SPELL_HIT;
|
||||
if (m_attackType == OFF_ATTACK)
|
||||
m_procAttacker |= PROC_FLAG_SUCCESSFUL_OFFHAND_HIT;
|
||||
m_procVictim = PROC_FLAG_TAKEN_MELEE_SPELL_HIT;
|
||||
break;
|
||||
case SPELL_DAMAGE_CLASS_RANGED:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10237"
|
||||
#define REVISION_NR "10238"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue