[committed] RA - Allure of Death

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

[committed] RA - Allure of Death

Postby -Shawn- » Fri Oct 15, 2010 3:22 am

Current Code:
Code: Select all
     if (target.EffectList.GetOfType(typeof(AllureofDeathEffect)) != null)
            {
                resist += 75;
            }


My Code:
Code: Select all
  if (target.EffectList.GetOfType(typeof(AllureofDeathEffect)) != null)
            {
                int basechance = base.CalculateSpellResistChance(target);
                GameSpellEffect Nearsight = SpellHandler.FindEffectOnTarget(target, "Nearsight");
                if (Nearsight != null)
                {
                    basechance += (int)Nearsight.Spell.Value;
                }
                GameSpellEffect Mesmerize = SpellHandler.FindEffectOnTarget(target, "Mesmerize");
                if (Mesmerize != null)
                {
                    basechance += (int)Mesmerize.Spell.Value;
                }
                GameSpellEffect Stun = SpellHandler.FindEffectOnTarget(target, "Stun");
                if (Stun != null)
                {
                    basechance += (int)Stun.Spell.Value;
                }
                return Math.Min(75, basechance);

            }


Definition of RA - Bonedancer appearance is changed to skeletal form for 60 seconds to confuse enemy. When in skeletal form, the Bonedancer has a 75% chance of out-right resisting Nearsight and all Crowd Control spells.

http://camelotherald.com/realmabilities/ra.php
Attachments
AllureofDeathFix.patch
(1.56 KiB) Downloaded 12 times
viewtopic.php?f=6&t=14984

Sky is the limit.
-Shawn-
DOL Devotee
 
Posts: 305
Joined: Tue Nov 24, 2009 1:47 am
Location: New York

Re: RA - Allure of Death

Postby Graveen » Fri Oct 15, 2010 8:05 am

Nice !

Accepted, thank you, soon in SVN :)
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: RA - Allure of Death

Postby -Shawn- » Fri Oct 15, 2010 10:32 am

Don't forget to check out the other 2 RA patches I posted under this one :D and Thanks!
viewtopic.php?f=6&t=14984

Sky is the limit.
-Shawn-
DOL Devotee
 
Posts: 305
Joined: Tue Nov 24, 2009 1:47 am
Location: New York


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest