Skip to content

Instantly share code, notes, and snippets.

@callmephil
callmephil / gist:911606cfa175dd6f2d0093d981b701dd
Created April 10, 2024 19:04 — forked from long1eu/gist:e59e3674871d3d63c9fe7b177fe43ca8
InteractiveViewer with CustomMultiChildLayout
import 'dart:convert';
import 'dart:io';
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:image_size_getter/file_input.dart' as image_size;
import 'package:image_size_getter/image_size_getter.dart' as image_size;
void main() {
runApp(const MyApp());
@callmephil
callmephil / media-query.css
Created March 20, 2020 17:53 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index 1dd66d7699..8683884b25 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -350,6 +350,40 @@ void CreatureAI::SetBoundary(CreatureBoundary const* boundary, bool negateBounda
me->DoImmediateBoundaryCheck();
}
+bool CreatureAI::CheckMeleeRepositionRequirements()
+{
diff --git a/src/server/game/Entities/Player/ActionBatchObject.cpp b/src/server/game/Entities/Player/ActionBatchObject.cpp
new file mode 100644
index 0000000000..dfefef657a
--- /dev/null
+++ b/src/server/game/Entities/Player/ActionBatchObject.cpp
@@ -0,0 +1,126 @@
+/*
+* Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/>
+*
+* This program is free software; you can redistribute it and/or modify it
@callmephil
callmephil / arena_spectator.patch
Last active September 28, 2015 13:14 — forked from walkline/arena_spectator.patch
arena spectator system
From 7b0fad50ebcb1be886b807c9f8e6374311e6e234 Mon Sep 17 00:00:00 2001
From: EmiliyanKurtseliyanski <[email protected]>
Date: Sun, 30 Mar 2014 22:22:16 -0700
Subject: [PATCH] Proper Spectator
---
sql/Razer/Custom/rbac_permissions_Spectate.sql | 12 +
.../Custom/rbac_role_permissions_Spectate.sql | 12 +
src/server/game/Accounts/RBAC.h | 6 +
src/server/game/Battlegrounds/Battleground.cpp | 34 +-
#include "ScriptPCH.h"
class gamble_npc : public CreatureScript
{
public:
gamble_npc() : CreatureScript("gamble_npc") { }
std::string colorstring(int8 type)
{
std::string _color;
From 5b66515188713231ecd95db306f9e0c2e7ada265 Mon Sep 17 00:00:00 2001
From: soulfrost <[email protected]>
Date: Wed, 20 Mar 2013 21:03:08 +0400
Subject: [PATCH 2/2] SpellEffectInfo::CalcRadius
Signed-off-by: soulfrost <[email protected]>
---
src/server/game/DataStores/DBCStructure.h | 6 +-
src/server/game/Spells/SpellInfo.cpp | 392 ++++++++++++++++++++++++++++--
src/server/game/Spells/SpellInfo.h | 2 +-