Jump to content

VladimirMangos

Members
  • Posts

    2813
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by VladimirMangos

  1. I think feature useful but can be implemented in partly different way.

    GM can do GM tasks in chat independent from in game GM state. Chat and in game mostly not dependent.

    So better add chat gm state independent from in game GM state with new option

    #        GM.ChatLoginState
    #                GM chat mode at login
    #                Default: 2 (last save state)
    #                                 0 (disable)
    #                                 1 (enable)

    I will make change in this way...

  2. No, 45401 and 45403 not have any spell proc auras and so adding this data useless.

    Instead must be spells that _triggering_ this spells casting.

    I not check 45401 case, but for 45403:

    spell triggred at enchantment applied from item 34538 (spell 45395)

    enchantment id = 3265 base at SpellItemEnchantments.dbc this applied spell 45396.

    Bad side for this that spell 45396 not exists :/

  3. Talent is spell castead at learning and character loading. So if you in code not allow casting spell then this talent will not work but let apply talent points.

    If you want not allow apply telent points then you must not allow this in WorldSession::HandleLearnTalentOpcode

  4. For redirection need know redirect target in Unit::AddThreat

    this possible 2 ways:

    a) from aura (not work without changes: aura self casted and store redirect target data)

    :cool: from new variable in Unit (need initialize at spell cast)

    b1) if it initilize in effect then

    - we can have problem with not reset it at aura remove in case aura apply fail (aura applied after reset in current code)

    - at aura save and loading we will not set correctly redirect target

    - at spell cast if old aura active redirect target will be lost at old aura remove (aura remove before new apply but after redirect effect apply), cooldown prevent this for normal player but not for GM.

    b2) if it initilized in aura then

    - we not have like problems, but need way to get correct target in aura (aura self casted and then not have any target information for redirect target)

    a, b2 is hack, b1 isn't safe

  5. repaired? It never work before in any mangos revision...

    Unclear how better implement it.

    Main problem: caster side aura not have information about target at apply (most important) and remove.

    For speed we can store redirection target guid in Unit field, but this will be very not safe code: effect called for target and caster aura for caster

    In mangos pet-target effects apply algo we will have call effect _before_ aura apply.

    This create problems: at load from saved data target lost (liitle problem for short working spells)

    But if aura failed to apply or replace other similar aura (caster/target aura versions) then we can in result or lost correct setting at aura replace (effect called before aura replace code) or have target setup at infinity time (until relogin).

    I have some "working" version but don't want add its as totally hack-like.

    Anyway name update patch applied in [6664]. Thank you :)

×
×
  • 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