[svn] * Prevent crash at access to deleted social data for player. Remove social data at logout instead - source mangos
* Fixed subcommands list output at console. - source mangos * Rename scripts update. --HG-- branch : trunk
This commit is contained in:
1 parent
f724227f24
commit
3ea64f7581
5 files changed
+10
-6
No files matched your search
@@ -4898,7 +4898,7 @@ void Spell::EffectDuel(uint32 i)
|
||||
Player *target = (Player*)unitTarget;
|
||||
|
||||
// caster or target already have requested duel
|
||||
if( caster->duel || target->duel || target->GetSocial()->HasIgnore(caster->GetGUIDLow()) )
|
||||
if( caster->duel || target->duel || !target->GetSocial() || target->GetSocial()->HasIgnore(caster->GetGUIDLow()) )
|
||||
return;
|
||||
|
||||
// Players can only fight a duel with each other outside (=not inside dungeons and not in capital cities)
|
||||
|
||||
Reference in new issue
Block a user