mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +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)
|
||||
{
|
||||
// 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)
|
||||
{
|
||||
case TARGET_SELF:
|
||||
case TARGET_SINGLE_FRIEND:
|
||||
case TARGET_SINGLE_PARTY:
|
||||
case TARGET_CHAIN_HEAL:
|
||||
|
|
@ -448,7 +447,7 @@ bool IsExplicitPositiveTarget(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)
|
||||
{
|
||||
case TARGET_CHAIN_DAMAGE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue