Jump to content

zergtmn

Members
  • Posts

    230
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by zergtmn

  1. Updated for r. 9798. Also fixed timer displaying http://paste2.org/p/796684
  2. diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 29592ad..32eb6d4 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2654,6 +2654,13 @@ void Spell::cast(bool skipCheck) AddTriggeredSpell(52874); // Fan of Knives (offhand) } break; + case SPELLFAMILY_HUNTER: + { + // Lock and Load + if (m_spellInfo->Id == 56453) + AddPrecastSpell(67544); // Lock and Load Marker + break; + } case SPELLFAMILY_PALADIN: { // Hand of Reckoning diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c29ce02..0bab448 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7515,6 +7515,13 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB if (!(procSpell->SpellFamilyFlags & UI64LIT(0x0000000000000020))) return false; } + // Lock and Load + else if (auraSpellInfo->SpellIconID == 3579) + { + // Check for Lock and Load Marker + if (HasAura(67544)) + return false; + } break; case SPELLFAMILY_PALADIN: {
  3. I think it's better check distance to circle/LoS in Spell::CheckCast and not in Aura::HandleModMechanicImmunity. Something like: // Demonic Circle: Teleport if (m_spellInfo->Id == 48020) { if (GameObject* obj = m_caster->GetGameObject(48018)) { if (!m_caster->IsWithinDistInMap(obj, GetSpellMaxRange(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)))) return SPELL_FAILED_OUT_OF_RANGE; if (!m_caster->IsWithinLOS(obj->GetPositionX(), obj->GetPositionY(), obj->GetPositionZ())) return SPELL_FAILED_LINE_OF_SIGHT; } }
  4. On offy these debuffs simply replace each other. http://forums.wow-europe.com/thread.html?topicId=9017951964&sid=1 http://forums.worldofwarcraft.com/thread.html?topicId=21626543634&sid=1
  5. http://paste2.org/p/708764
  6. I compared your source with source from http://code.google.com/p/mangos-luascript/source/list. Seems you replaced only Derex name with yours. Lol
  7. Improved Stormstrike Rank 1 has 50% chance to restore mana, but with mask 0x0000001000000000 it always procs.
  8. In 3.2.2: ID - 32727 () -------------------------- Category = 0, SpellIconID = 122, activeIconID = 0, SpellVisual_0 = 0, SpellVisual_1 = 0 Family SPELLFAMILY_GENERIC, flag 0x00000000 00000000 00000000 School = SPELL_SCHOOL_NORMAL, DamageClass = SPELL_DAMAGE_CLASS_NONE, PreventionType = NONE Attributes 0xA9000000, Ex 0x00000420, Ex2 0x10084004, Ex3 0x00130000, Ex4 0x00800000, Ex5 0x00060008, Ex6 0x00001404 Duration = -1, 0, -1 Interrupt Flags: 0x00000000, AuraIF 0x00080000, ChannelIF 0x00000000 Chance = 101, charges - 0 It is 0x00080000 and not 0x00000800, but I don't know if flag was changed since 3.2.2.
  9. Old code can be fully removed, but sql is needed.
  10. Try this patch: diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 699e6ce..c71c48d 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2462,6 +2462,8 @@ void Spell::Prepare(SpellCastTargets const* targets, Aura* triggeredByAura) // add non-triggered (with cast time and without) if (!m_IsTriggeredSpell) { + m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CAST); + // add to cast type slot m_caster->SetCurrentCastedSpell( this ); diff --git a/src/game/Unit.h b/src/game/Unit.h index 00ccca9..baac428 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -66,7 +66,7 @@ enum SpellAuraInterruptFlags AURA_INTERRUPT_FLAG_NOT_UNDERWATER = 0x00000100, // 8 removed by leaving water AURA_INTERRUPT_FLAG_NOT_SHEATHED = 0x00000200, // 9 removed by unsheathing AURA_INTERRUPT_FLAG_UNK10 = 0x00000400, // 10 - AURA_INTERRUPT_FLAG_UNK11 = 0x00000800, // 11 + AURA_INTERRUPT_FLAG_CAST = 0x00000800, // 11 removed by casting a spell AURA_INTERRUPT_FLAG_UNK12 = 0x00001000, // 12 removed by attack? AURA_INTERRUPT_FLAG_UNK13 = 0x00002000, // 13 AURA_INTERRUPT_FLAG_UNK14 = 0x00004000, // 14
  11. Try this fix http://paste2.org/p/686586
  12. Maybe right flag is AURA_INTERRUPT_FLAG_CAST = 0x00000800, // 11 removed by casting spells Look at these spells: http://www.wowhead.com/?spell=38157 (Overseer Disguise) has AuraInterruptFlags = 0x9801 http://www.wowhead.com/?spell=3680 (Lesser Invisibility Potion) has AuraInterruptFlags = 0x13C03 http://www.wowhead.com/?spell=32612 (Mage Invisibility) has AuraInterruptFlags = 0x3C07 All are removable by casting any spells on offy. By AND-ing flags we get 0x1801. http://www.wowhead.com/?spell=52842 also has flags 0x1001, but not removable by spell casting. So we get 0x800 Something like http://paste2.org/p/690500
  13. Second fix is wrong, you can swap bags and place another item in same slot.
  14. and http://www.wowhead.com/?npc=36886
  15. Maybe this can help: http://eu.wowarmory.com/arena-calculator.xml
  16. Great work Now waiting for your AV implementation
  17. try git clone git://github.com/rastikzzz/mangos.git
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use