[committed] Spell Effects incorrect on Pet Damage Shield

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

[committed] Spell Effects incorrect on Pet Damage Shield

Postby darkpoetcc » Wed May 25, 2011 9:17 am

When a Pet Damage Shield is being cast, the Spell Effect that is shown is around the Caster, whereas it should be shown around the summoned pet.

The code shown here:
Code: Select all
// show animation on caster for positive spells, negative shows on every StartSpell
if (m_spell.Target == "Self" || m_spell.Target == "Group" || m_spell.Target == "Pet")
SendEffectAnimation(Caster, 0, false, 1);
Should be similar the code here:
Code: Select all
// show animation on caster or pet for positive spells, negative shows on every StartSpell
if (m_spell.Target == "Self" || m_spell.Target == "Group")
{
//Show effects on the Caster
SendEffectAnimation(Caster, 0, false, 1);
}

if (m_spell.Target == "Pet")
{
//Show effects on the Controlled Pet
SendEffectAnimation(m_spellTarget, 0, false, 1);
}
In my testing, it has resolved the issue and the Spell Effect shows around the pet when the Damage Shield is cast. I tested this with a Cabalist in order to verify it show as have seen within the game on the live Mythic servers.

The issue resides in the SpellHandler.cs code file, which resides in the GameServer project.
darkpoetcc
DOL Guest
 
Posts: 2
Joined: Tue May 24, 2011 11:42 pm

Re: Spell Effects incorrect on Pet Damage Shield

Postby Graveen » Wed May 25, 2011 9:29 am

thank you DarkPoetcc, this is effectively a proper report.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Spell Effects incorrect on Pet Damage Shield

Postby Etaew » Wed May 25, 2011 9:30 am

Ah, you explained this well, and provided some code to back it up and a suggested solution. Perfect post :-)
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: Spell Effects incorrect on Pet Damage Shield

Postby Phen » Wed May 25, 2011 11:29 am

this always kind of annoyed me on my Cabalist :)
Phen
Storm GM
 
Posts: 674
Joined: Thu Jun 12, 2008 12:55 am
Yahoo Messenger: KerzedSoul@yahoo.com

Re: Spell Effects incorrect on Pet Damage Shield

Postby Graveen » Wed May 25, 2011 8:34 pm

Accepted, soon in SVN, thank you
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: [committed] Spell Effects incorrect on Pet Damage Shield

Postby darkpoetcc » Thu May 26, 2011 7:24 am

Very welcome! :) Glad I could be of assistance in some small way
darkpoetcc
DOL Guest
 
Posts: 2
Joined: Tue May 24, 2011 11:42 pm

Re: [committed] Spell Effects incorrect on Pet Damage Shield

Postby Dinberg » Thu May 26, 2011 9:35 am

Bravo sir! A good example of how to contribute :D
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest