COMMITTED: SE_SpellTrigger(formerly SE_LifeshardChance)
Spell Effect 340, incorrectly labeled LifeshardChance from when lucy reported all the effects that way is actually very similiar to TriggerOnCast however they don't rely on a buff.
Mana Reiterate(upgraded flare line) has a 100% chance to proc Mana Reiterate Strike on cast, and then Mana Reiterate Strike has a 10% chance to proc Mana Re-Reiterate strike which in turn has 10% chance to proc Mana Re-Re-Reiterate Strike, etc. (incidently KLS this is why I believe the TriggerOnCast code should be 100, not 1000, as Mana Flares always proc, they have a proc limit but they proc every time... ie Pyromancy vs Mana Flare ... Pyromancy is 5% chance to proc(base1) vs 100 for mana flare.) Anyway, the code... edit.. changed the mob.cpp function to align with these 2 spells... Bark at the Moon which has a 95% chance to proc 1 pet however if that fails then you get the 5% proc of 4 pets. Previous code didnt allow that, you could miss both checks. However a spell like Annihilate the Unnatural has 2 chances to proc but you arent guaranteed the second proc if the first fails. New code should address this. spdat.h - line 478 - alter this Code:
#define SE_LifeshardChance 340 //chance to create lifeshard Code:
#define SE_SpellTrigger 340 //chance to trigger spell Code:
case SE_SpellTrigger: Code:
TrySpellTrigger(spelltar, spell_id); Code:
void TrySpellTrigger(Mob *target, uint32 spell_id); Code:
void Mob::TrySpellTrigger(Mob *target, uint32 spell_id) |
wish we could edit longer... there was a slight error in that you could trigger bark at the moon type spells twice if lucky... this should fix that while allowing spells like annhilate to proc twice.
Code:
void Mob::TrySpellTrigger(Mob *target, uint32 spell_id) |
OK redid this code as well as a few spells threw a wrench in the previous code, namely Cauldron Summoning, Wildmagic Blast & the annihilate line I linked earlier. In order to get all those working, required new logic so hopefully this is alittle more robust.
spdat.h Code:
Index: spdat.h Code:
Index: spell_effects.cpp Code:
Index: spells.cpp Code:
Index: mob.h Code:
Index: mob.cpp |
All times are GMT -4. The time now is 02:57 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.