mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 03:42:37 +01:00
[svn] * Fixed xp calculation for low level characters when grouped with a higher level player. Patch provided by Reiner030.
* Fixed positive spells being not resistable when cast on hostile units. Patch provided by QAston. * Fixed compile warnings in gcc. Patch provided by WarHead. --HG-- branch : trunk
This commit is contained in:
@@ -2827,7 +2827,8 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
||||
|
||||
// All positive spells can`t miss
|
||||
// TODO: client not show miss log for this spells - so need find info for this in dbc and use it!
|
||||
if (IsPositiveSpell(spell->Id))
|
||||
if (IsPositiveSpell(spell->Id)
|
||||
&&(!IsHostileTo(pVictim))) //prevent from affecting enemy by "positive" spell
|
||||
return SPELL_MISS_NONE;
|
||||
|
||||
// Check for immune (use charges)
|
||||
|
||||
Reference in New Issue
Block a user