mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[9044] Exclude TARGET_SELF from IsExplicitPositiveTarget.
This must fix triggred spells casting in case when it self casted but cast code send diff target.
This commit is contained in:
parent
a01f2e1f72
commit
68c8757127
2 changed files with 3 additions and 4 deletions
|
|
@ -429,10 +429,9 @@ bool IsPositiveTarget(uint32 targetA, uint32 targetB)
|
||||||
|
|
||||||
bool IsExplicitPositiveTarget(uint32 targetA)
|
bool IsExplicitPositiveTarget(uint32 targetA)
|
||||||
{
|
{
|
||||||
// positive targets
|
// positive targets that in target selection code expect target in m_targers, so not that auto-select target by spell data by m_caster and etc
|
||||||
switch(targetA)
|
switch(targetA)
|
||||||
{
|
{
|
||||||
case TARGET_SELF:
|
|
||||||
case TARGET_SINGLE_FRIEND:
|
case TARGET_SINGLE_FRIEND:
|
||||||
case TARGET_SINGLE_PARTY:
|
case TARGET_SINGLE_PARTY:
|
||||||
case TARGET_CHAIN_HEAL:
|
case TARGET_CHAIN_HEAL:
|
||||||
|
|
@ -448,7 +447,7 @@ bool IsExplicitPositiveTarget(uint32 targetA)
|
||||||
|
|
||||||
bool IsExplicitNegativeTarget(uint32 targetA)
|
bool IsExplicitNegativeTarget(uint32 targetA)
|
||||||
{
|
{
|
||||||
// non-positive targets
|
// non-positive targets that in target selection code expect target in m_targers, so not that auto-select target by spell data by m_caster and etc
|
||||||
switch(targetA)
|
switch(targetA)
|
||||||
{
|
{
|
||||||
case TARGET_CHAIN_DAMAGE:
|
case TARGET_CHAIN_DAMAGE:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9043"
|
#define REVISION_NR "9044"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue