Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to EmoteManager for ResistSpell emote category #3169

Merged
merged 2 commits into from
Aug 26, 2020

Conversation

LtRipley36706
Copy link
Member

No description provided.

@@ -339,6 +339,8 @@ public bool TryResistSpell(WorldObject target, Spell spell, WorldObject caster =
player.Session.Network.EnqueueSend(new GameMessageSystemChat($"{targetCreature.Name} resists your spell", ChatMessageType.Magic));

player.Session.Network.EnqueueSend(new GameMessageSound(player.Guid, Sound.ResistSpell, 1.0f));

targetCreature.EmoteManager.OnResistSpell(player);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be moved down to the end of if (resisted)

if a CombatPet casts a spell on a monster, and the spell is resisted, the monster should still be calling EmoteManager.OnResistSpell(combatPet)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

er since combat pets don't cast spells, probably not the best example... but if we have monsters attacking monsters from factions eventually, the concept is still sound... this shouldn't be dependent on the attacker being a player

@LtRipley36706 LtRipley36706 merged commit cd1de31 into ACEmulator:master Aug 26, 2020
@LtRipley36706 LtRipley36706 deleted the resistspell branch February 14, 2021 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants