|
|
![](/forums/images/Darkness/misc/spacer.gif) |
![](/forums/images/Darkness/misc/spacer.gif) |
![](/forums/images/Darkness/misc/spacer.gif) |
![](/forums/images/Darkness/misc/q1.jpg) |
|
![](/forums/images/Darkness/misc/q1-1.jpg) |
![](/forums/images/Darkness/misc/q4.jpg) |
|
![](/forums/images/Darkness/misc/q4-1.jpg) |
![](/forums/images/Darkness/misc/a1.jpg) |
|
![](/forums/images/Darkness/misc/a1-1.jpg) |
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
08-29-2012, 06:20 PM
|
Demi-God
|
|
Join Date: Apr 2008
Location: MA
Posts: 1,164
|
|
COMMITTED: AA reset timer on failed casts.
For some reason shorter reuse timer AAs (Divine Arbiration, Wrath of the Wild) were not being reset on failed casts (interrupts)
Code:
Index: AA.cpp
===================================================================
--- AA.cpp (revision 2196)
+++ AA.cpp (working copy)
@@ -288,7 +288,11 @@
}
if(!CastSpell(caa->spell_id, target_id, 10, -1, -1, 0, -1, AATimerID + pTimerAAStart, timer_base, 1))
- return;
+ {
+ // Reset the timer on an AA if it failed to cast for some reason (interrupt)
+ p_timers.Clear(&database, AATimerID + pTimerAAStart);
+ return;
+ }
}
else
{
Last edited by cavedude; 09-13-2012 at 01:47 PM..
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
09-02-2012, 01:45 PM
|
![cavedude's Avatar](image.php?s=b790e216121ca65d7acb0f5e69a8b8f7&u=16846&dateline=1184644691) |
The PEQ Dude
|
|
Join Date: Apr 2003
Location: -
Posts: 1,988
|
|
I'm going to be taking a look at your submissions and testing them on TGC. If all goes well, they'll be committed. Start to look for them live on the server tomorrow.
|
![Old](/forums/images/Darkness/statusicon/post_old.gif)
09-05-2012, 07:15 PM
|
Demi-God
|
|
Join Date: Apr 2008
Location: MA
Posts: 1,164
|
|
Hmm, there appears to miss a case.. Will have to do some investigation (my guess is when the target moves out of range, but that's just intuition right now, haven't payed enough attention to when it happens :/ )
|
![](/forums/images/Darkness/misc/a4.gif) |
|
![](/forums/images/Darkness/misc/a6.gif) |
![Old](/forums/images/Darkness/statusicon/post_old.gif)
09-08-2012, 06:41 PM
|
Demi-God
|
|
Join Date: Apr 2008
Location: MA
Posts: 1,164
|
|
Okay, I found the case where it was still not resetting the timer, and my inclination was right, it was when the target moved out of range. You can ignore the previous diff and apply this one (I originally didn't want to touch the Cast functions because of a rather ominous warning, but I have to now!)
Code:
Index: AA.cpp
===================================================================
--- AA.cpp (revision 2207)
+++ AA.cpp (working copy)
@@ -241,6 +241,7 @@
case aaTargetCurrentGroup:
if(GetTarget() == NULL) {
Message_StringID(MT_DefaultText, AA_NO_TARGET); //You must first select a target for this ability!
+ p_timers.Clear(&database, AATimerID + pTimerAAStart);
return;
}
target_id = GetTarget()->GetID();
@@ -501,6 +502,7 @@
case aaTargetCurrentGroup:
if(GetTarget() == NULL) {
Message_StringID(MT_DefaultText, AA_NO_TARGET); //You must first select a target for this ability!
+ p_timers.Clear(&database, timer_id + pTimerAAEffectStart);
return;
}
target_id = GetTarget()->GetID();
Index: spells.cpp
===================================================================
--- spells.cpp (revision 2207)
+++ spells.cpp (working copy)
@@ -711,6 +711,9 @@
CastToNPC()->AI_Event_SpellCastFinished(false, casting_spell_slot);
}
+ if(casting_spell_type == 1 && IsClient()) //Rest AA Timer on failed cast
+ CastToClient()->GetPTimers().Clear(&database, casting_spell_timer);
+
ZeroCastingVars(); // resets all the state keeping stuff
mlog(SPELLS__CASTING, "Spell %d has been interrupted.", spellid);
|
![](/forums/images/Darkness/misc/a1.gif) |
|
![](/forums/images/Darkness/misc/a3.gif) |
![Old](/forums/images/Darkness/statusicon/post_old.gif)
09-10-2012, 12:29 PM
|
![cavedude's Avatar](image.php?s=b790e216121ca65d7acb0f5e69a8b8f7&u=16846&dateline=1184644691) |
The PEQ Dude
|
|
Join Date: Apr 2003
Location: -
Posts: 1,988
|
|
Look for the updated code on PEQ tomorrow.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 10:31 PM.
|
|
![](/forums/images/Darkness/misc/s1.jpg) |
|
![](/forums/images/Darkness/misc/s1-1.jpg) |
|
|
|
![](/forums/images/Darkness/misc/z1.jpg) |
|
![](/forums/images/Darkness/misc/z1-1.jpg) |
|
![](/forums/images/Darkness/misc/side3.jpg) |