All pastes #620733 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-15 18:34 UTC
rendered paste body
Index: src/game/Player.h
===================================================================
--- src/game/Player.h	(revision 4113)
+++ src/game/Player.h	(working copy)
@@ -1106,7 +1106,7 @@
 
         bool IsGroupVisibleFor(Player* p) const;
         bool IsInSameGroupWith(Player const* p) const;
-        bool IsInSameRaidWith(Player * p) const { return GetGroup() != NULL && GetGroup() == p->GetGroup(); }
+        bool IsInSameRaidWith(Player const* p) const { return GetGroup() != NULL && GetGroup() == p->GetGroup(); }
         void UninviteFromGroup();
         static void RemoveFromGroup(Group* group, uint64 guid);
         void RemoveFromGroup() { RemoveFromGroup(GetGroup(),GetGUID()); }
Index: src/game/Spell.cpp
===================================================================
--- src/game/Spell.cpp	(revision 4113)
+++ src/game/Spell.cpp	(working copy)
@@ -448,7 +448,7 @@
         if (Target == MainTarget)
             return 0;
         else if (Target->GetTypeId() == TYPEID_PLAYER && MainTarget->GetTypeId() == TYPEID_PLAYER &&             
-            ((Player*)Target)->IsInSameRaidWith((Player*)MainTarget))
+            ((Player const*)Target)->IsInSameRaidWith((Player const*)MainTarget))
         {
             if (Target->GetHealth() == Target->GetMaxHealth())
                 return 40000;