mangosArchives / Mangos-One-server-old

This repo has been moved to https://githubs.com/mangosone/server
http://getmangos.eu/
GNU General Public License v2.0
95 stars 54 forks source link

Devour Magic #27

Open Ve1vet opened 12 years ago

Ve1vet commented 12 years ago

Devour Magic, can't dispel from hostile targets. There is fix -> https://gitorious.org/atlantiscore/atlantiscore/commit/dbda402fa617bc116935586bf0f41cbd235a7d0f

DomGries commented 12 years ago

Thanks. you mean devour magic doesnt work in duel but works fine everywhere else? in general a more detailed bug report would be nice.

Ve1vet commented 12 years ago

Devour Magic 5 & 6 rank has EffectImplicitTargetA 25/0/0 -> 25 == TARGET_DUELVSPLAYER. In Spell.cpp two shecks: If spell is positive it can't be casted on hostile target. But TARGET_DUELVSPLAYER is positive & negative at the same time. Thats why when player try to dispel aura from hostile target ( anywhere, not only in duel ), he receive message "Invalid target". In my fix i added check for that case, if spell has that effect(TARGET_DUELVSPLAYER).